]> gitweb.factorcode.org Git - factor.git/commitdiff
locals.types: stub unit tests
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 9 Jun 2015 08:03:20 +0000 (10:03 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 9 Jun 2015 11:02:03 +0000 (13:02 +0200)
basis/locals/types/types-tests.factor [new file with mode: 0644]

diff --git a/basis/locals/types/types-tests.factor b/basis/locals/types/types-tests.factor
new file mode 100644 (file)
index 0000000..91db776
--- /dev/null
@@ -0,0 +1,11 @@
+USING: accessors compiler.units kernel locals.types tools.test words ;
+IN: locals.types.test
+
+{ t } [
+    [ "hello" <local> ] with-compilation-unit "local?" word-prop
+] unit-test
+
+{ t "hello!" } [
+    [ "hello" <local-reader> <local-writer> ] with-compilation-unit
+    [ "local-writer?" word-prop ] [ name>> ] bi
+] unit-test