]> gitweb.factorcode.org Git - factor.git/commitdiff
zealot.cli-test-changed-vocabs: The ``test`` word tests all child vocabs in the hiera...
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2018 21:53:38 +0000 (16:53 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2018 21:53:38 +0000 (16:53 -0500)
This should test fewer vocabularies and find more bugs where vocabularies are expected to be loaded but aren't loaded.

extra/zealot/cli-test-changed-vocabs/cli-test-changed-vocabs.factor

index 200313c55ebc916f879cba02f0913c81bfd8d167..f7ed9637de21c22153584f94ec37b9210141e484 100644 (file)
@@ -4,10 +4,7 @@ USING: kernel sequences tools.test vocabs zealot.factor ;
 IN: zealot.cli-test-changed-vocabs
 
 : zealot-test-changed-vocabs ( -- )
-    ci-vocabs-to-test [
-        [ require ] each
-    ] [
-        [ test ] each
-    ] bi ;
+    ci-vocabs-to-test [ require test-vocab ] each ;
+
+MAIN: zealot-test-changed-vocabs
 
-MAIN: zealot-test-changed-vocabs
\ No newline at end of file