]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.test: run-test-file is public now, fix no-method error if unit test forgets...
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 1 Feb 2010 04:09:57 +0000 (17:09 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Mon, 1 Feb 2010 04:09:57 +0000 (17:09 +1300)
basis/tools/test/test.factor

index 559b1357c80ac34188d9e962d94a244444e071ba..8dda4fe16c484eb7b6ddc969609c2b572e546105 100644 (file)
@@ -110,15 +110,21 @@ SYNTAX: TEST:
 
 >>
 
+PRIVATE>
+
 : run-test-file ( path -- )
     dup file [
         test-failures get file get +test-failure+ delete-file-errors
         '[ _ run-file ] [ file-failure ] recover
     ] with-variable ;
 
+<PRIVATE
+
 : run-vocab-tests ( vocab -- )
-    dup vocab source-loaded?>> [
-        vocab-tests [ run-test-file ] each
+    vocab dup [
+        dup source-loaded?>> [
+            vocab-tests [ run-test-file ] each
+        ] [ drop ] if
     ] [ drop ] if ;
 
 PRIVATE>