]> gitweb.factorcode.org Git - factor.git/commitdiff
webbrowser: add tests for url-like.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Sep 2012 23:51:03 +0000 (16:51 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 22 Sep 2012 23:51:03 +0000 (16:51 -0700)
basis/webbrowser/webbrowser-tests.factor [new file with mode: 0644]

diff --git a/basis/webbrowser/webbrowser-tests.factor b/basis/webbrowser/webbrowser-tests.factor
new file mode 100644 (file)
index 0000000..75bcd59
--- /dev/null
@@ -0,0 +1,7 @@
+USING: tools.test ;
+IN: webbrowser
+
+{ t } [ "http://reddit.com" url-like? ] unit-test
+{ t } [ "https://reddit.com" url-like? ] unit-test
+{ f } [ "ftp://reddit.com" url-like? ] unit-test
+{ f } [ 123 url-like? ] unit-test