]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixing unit tests for stack effect inference changes
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 21 Apr 2009 02:15:19 +0000 (21:15 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 21 Apr 2009 02:15:19 +0000 (21:15 -0500)
106 files changed:
basis/alarms/alarms-tests.factor
basis/alien/c-types/c-types-tests.factor
basis/base64/base64-tests.factor
basis/binary-search/binary-search-tests.factor
basis/bootstrap/image/image-tests.factor
basis/calendar/calendar-tests.factor
basis/calendar/format/macros/macros-tests.factor
basis/combinators/smart/smart-tests.factor
basis/compiler/cfg/builder/builder-tests.factor
basis/compiler/cfg/linear-scan/assignment/assignment-tests.factor
basis/compiler/cfg/linearization/linearization-tests.factor
basis/compiler/tests/insane.factor [deleted file]
basis/compiler/tests/optimizer.factor
basis/compiler/tests/redefine1.factor
basis/compiler/tests/redefine16.factor
basis/compiler/tests/simple.factor
basis/compiler/tree/builder/builder-tests.factor
basis/compiler/tree/checker/checker-tests.factor
basis/compiler/tree/dead-code/dead-code-tests.factor
basis/compiler/tree/debugger/debugger-tests.factor
basis/compiler/tree/def-use/def-use-tests.factor
basis/compiler/tree/escape-analysis/escape-analysis-tests.factor
basis/compiler/tree/normalization/normalization-tests.factor
basis/compiler/tree/optimizer/optimizer-tests.factor
basis/compiler/tree/propagation/propagation-tests.factor
basis/compiler/tree/recursive/recursive-tests.factor
basis/compiler/tree/tuple-unboxing/tuple-unboxing-tests.factor
basis/db/pools/pools-tests.factor
basis/db/tuples/tuples-tests.factor
basis/functors/functors-tests.factor
basis/furnace/auth/auth-tests.factor
basis/furnace/auth/features/edit-profile/edit-profile-tests.factor
basis/furnace/auth/features/recover-password/recover-password-tests.factor
basis/furnace/auth/features/registration/registration-tests.factor
basis/furnace/auth/login/login-tests.factor
basis/furnace/db/db-tests.factor
basis/help/markup/markup-tests.factor
basis/help/topics/topics-tests.factor
basis/html/components/components-tests.factor
basis/http/client/client-tests.factor
basis/http/server/dispatchers/dispatchers-tests.factor
basis/http/server/redirection/redirection-tests.factor
basis/http/server/server-tests.factor
basis/io/files/info/info-tests.factor
basis/io/launcher/launcher-tests.factor
basis/io/monitors/recursive/recursive-tests.factor
basis/io/monitors/windows/nt/nt-tests.factor
basis/io/sockets/secure/unix/unix-tests.factor
basis/io/styles/styles-tests.factor
basis/lcs/lcs-tests.factor
basis/locals/backend/backend-tests.factor
basis/locals/locals-tests.factor
basis/math/bitwise/bitwise-tests.factor
basis/models/models-tests.factor
basis/peg/peg-tests.factor
basis/peg/search/search-tests.factor
basis/persistent/vectors/vectors-tests.factor
basis/regexp/regexp-tests.factor
basis/smtp/smtp-tests.factor
basis/stack-checker/stack-checker-tests.factor
basis/stack-checker/transforms/transforms-tests.factor
basis/syndication/syndication-tests.factor
basis/tools/memory/memory-tests.factor
basis/tools/test/test-docs.factor
basis/tools/test/test-tests.factor
basis/tools/test/test.factor
basis/ui/event-loop/event-loop-tests.factor
basis/ui/gadgets/books/books-tests.factor
basis/ui/gadgets/buttons/buttons-tests.factor
basis/ui/gadgets/editors/editors-tests.factor
basis/ui/gadgets/gadgets-tests.factor
basis/ui/gadgets/scrollers/scrollers-tests.factor
basis/ui/gestures/gestures-tests.factor
basis/ui/operations/operations-tests.factor
basis/ui/render/render-tests.factor
basis/ui/tools/browser/browser-tests.factor
basis/ui/tools/inspector/inspector-tests.factor
basis/ui/tools/listener/listener-tests.factor
basis/ui/tools/profiler/profiler-tests.factor
basis/ui/tools/walker/walker-tests.factor
basis/ui/ui-tests.factor
basis/unicode/case/case-tests.factor
basis/unix/groups/groups-tests.factor
basis/unix/users/users-tests.factor
basis/wrap/strings/strings-tests.factor
basis/wrap/words/words-tests.factor
basis/xml/syntax/syntax-tests.factor
basis/xml/tests/test.factor
basis/xml/writer/writer-tests.factor
basis/xmode/code2html/code2html-tests.factor
core/checksums/checksums-tests.factor
core/classes/algebra/algebra-tests.factor
core/classes/tuple/tuple-tests.factor
core/combinators/combinators-tests.factor
core/continuations/continuations-tests.factor
core/io/files/files-tests.factor
core/parser/parser-tests.factor
extra/contributors/contributors-tests.factor
extra/infix/parser/parser-tests.factor
extra/infix/tokenizer/tokenizer-tests.factor
extra/mason/cleanup/cleanup-tests.factor
extra/mason/release/upload/upload-tests.factor
extra/multi-methods/tests/definitions.factor
extra/peg/javascript/javascript-tests.factor
extra/peg/javascript/parser/parser-tests.factor
extra/peg/javascript/tokenizer/tokenizer-tests.factor

index d1161e4cee2a647bb67890bd7cbcc6fd2424c54e..7c64680a834b297b197c73d1502de3538fcb68cd 100644 (file)
@@ -15,5 +15,3 @@ tools.test threads concurrency.count-downs ;
         [ resume ] curry instant later drop\r
     ] "test" suspend drop\r
 ] unit-test\r
-\r
-\ alarm-thread-loop must-infer\r
index 988dc180e017b42f75048ec0f0a5143d6946c320..ea9e881fd4d9e9c9f9a3c42c7af6c2c174e3acee 100644 (file)
@@ -2,8 +2,6 @@ IN: alien.c-types.tests
 USING: alien alien.syntax alien.c-types kernel tools.test
 sequences system libc alien.strings io.encodings.utf8 ;
 
-\ expand-constants must-infer
-
 CONSTANT: xyz 123
 
 [ { "blah" 123 } ] [ { "blah" xyz } expand-constants ] unit-test
index 572d8a5227db00f68e687376b5fa05658f811b21..9094286575ce78ec4aced1611619f368aaa7ef5d 100644 (file)
@@ -25,6 +25,3 @@ IN: base64.tests
 
 [ { 33 52 17 40 12 51 33 43 18 33 23 } base64> ]
 [ malformed-base64? ] must-fail-with
-
-\ >base64 must-infer
-\ base64> must-infer
index 77b1c16505a2641c169f608eadbd1b6a03a98a08..63d2697418b3c297ae78e5c894433d68059d0e67 100644 (file)
@@ -1,8 +1,6 @@
 IN: binary-search.tests
 USING: binary-search math.order vectors kernel tools.test ;
 
-\ sorted-member? must-infer
-
 [ f ] [ 3 { } [ <=> ] with search drop ] unit-test
 [ 0 ] [ 3 { 3 } [ <=> ] with search drop ] unit-test
 [ 1 ] [ 2 { 1 2 3 } [ <=> ] with search drop ] unit-test
index c432a47ea4844b7691ff92d8decfcf4fdbde7e7e..e7070d3cf2435a11297966168b0399a88dc8a28e 100644 (file)
@@ -2,9 +2,6 @@ IN: bootstrap.image.tests
 USING: bootstrap.image bootstrap.image.private tools.test
 kernel math ;
 
-\ ' must-infer
-\ write-image must-infer
-
 [ f ] [ { 1 2 3 } [ 1 2 3 ] eql? ] unit-test
 
 [ t ] [ [ 1 2 3 ] [ 1 2 3 ] eql? ] unit-test
index b6d8e74072edb7ab0bdd7bbdd7d773150915cc11..256b4e1b424d1734a6e63baf2b511ae912c4768b 100644 (file)
@@ -2,10 +2,6 @@ USING: arrays calendar kernel math sequences tools.test
 continuations system math.order threads ;
 IN: calendar.tests
 
-\ time+ must-infer
-\ time* must-infer
-\ time- must-infer
-
 [ f ] [ 2004 12 32 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
 [ f ] [ 2004  2 30 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
 [ f ] [ 2003  2 29 0   0  0 instant <timestamp> valid-timestamp? ] unit-test
index 544332770f70cc6749eb382231eab15bd60d4308..48567539adfbce78a18b6fd7e46c29eb4429ebe5 100644 (file)
@@ -10,6 +10,6 @@ IN: calendar.format.macros
 : compiled-test-1 ( -- n )
     { [ 1 throw ] [ 2 ] } attempt-all-quots ;
 
-\ compiled-test-1 must-infer
+\ compiled-test-1 def>> must-infer
 
 [ 2 ] [ compiled-test-1 ] unit-test
index 1cca697dde24d838fb075b8b01f766b9bc152000..080379e924160f73ffa929e56e073e28cb84bda1 100644 (file)
@@ -42,7 +42,7 @@ IN: combinators.smart.tests
 : nested-smart-combo-test ( -- array )
     [ [ 1 2 ] output>array [ 3 4 ] output>array ] output>array ;
 
-\ nested-smart-combo-test must-infer
+\ nested-smart-combo-test def>> must-infer
 
 [ { { 1 2 } { 3 4 } } ] [ nested-smart-combo-test ] unit-test
 
index 0b303a8a43440429ba748dcbc7765ec96aed3fa5..58eae8181b84e7c05e12ee57b6871096a95efa8a 100644 (file)
@@ -5,8 +5,6 @@ math.private compiler.tree.builder compiler.tree.optimizer
 compiler.cfg.builder compiler.cfg.debugger arrays locals byte-arrays
 kernel.private math ;
 
-\ build-cfg must-infer
-
 ! Just ensure that various CFGs build correctly.
 : unit-test-cfg ( quot -- ) '[ _ test-cfg drop ] [ ] swap unit-test ;
 
index 9efc23651b5925745421d4811a865a5d254ae8cd..13c178371145e78ef503c5cac781997368514b80 100644 (file)
@@ -1,4 +1,4 @@
 USING: compiler.cfg.linear-scan.assignment tools.test ;
 IN: compiler.cfg.linear-scan.assignment.tests
 
-\ assign-registers must-infer
+
index 5e866d15db322e8acf82f45f494454f55ba791f3..fe8b4fd0c03c9058765c3a22a6d3d4a5010fe57e 100644 (file)
@@ -1,4 +1,4 @@
 IN: compiler.cfg.linearization.tests
 USING: compiler.cfg.linearization tools.test ;
 
-\ build-mr must-infer
+
diff --git a/basis/compiler/tests/insane.factor b/basis/compiler/tests/insane.factor
deleted file mode 100644 (file)
index aa79067..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-IN: compiler.tests
-USING: words kernel stack-checker alien.strings tools.test
-compiler.units ;
-
-[ ] [ [ \ if redefined ] with-compilation-unit [ string>alien ] infer. ] unit-test
index 3aed47ae7e73a329a1be22c8211d58990235b80b..23b69b06b939dc2c79f8f2ee3f721825dd986c3a 100644 (file)
@@ -261,7 +261,7 @@ USE: binary-search.private
 : lift-loop-tail-test-2 ( -- a b c )
     10 [ ] lift-loop-tail-test-1 1 2 3 ;
 
-\ lift-loop-tail-test-2 must-infer
+\ lift-loop-tail-test-2 def>> must-infer
 
 [ 1 2 3 ] [ lift-loop-tail-test-2 ] unit-test
 
@@ -302,7 +302,7 @@ HINTS: recursive-inline-hang-3 array ;
 
 : member-test ( obj -- ? ) { + - * / /i } member? ;
 
-\ member-test must-infer
+\ member-test def>> must-infer
 [ ] [ \ member-test build-tree-from-word optimize-tree drop ] unit-test
 [ t ] [ \ + member-test ] unit-test
 [ f ] [ \ append member-test ] unit-test
@@ -325,7 +325,7 @@ PREDICATE: list < improper-list
     dup "a" get { array-capacity } declare >=
     [ dup "b" get { array-capacity } declare >= [ 3 ] [ 4 ] if ] [ 5 ] if ;
 
-\ interval-inference-bug must-infer
+[ t ] [ \ interval-inference-bug optimized>> ] unit-test
 
 [ ] [ 1 "a" set 2 "b" set ] unit-test
 [ 2 3 ] [ 2 interval-inference-bug ] unit-test
index 8145ad628b0eb793597360546a89e61583855a0e..a28b183fb65fe4f2f77853a50c4742d0b99aa33f 100644 (file)
@@ -36,41 +36,3 @@ M: integer method-redefine-generic-2 3 + ;
         fixnum string [ \ method-redefine-generic-2 method forget ] bi@
     ] with-compilation-unit
 ] unit-test
-
-! Test ripple-up behavior
-: hey ( -- ) ;
-: there ( -- ) hey ;
-
-[ t ] [ \ hey optimized>> ] unit-test
-[ t ] [ \ there optimized>> ] unit-test
-[ ] [ "IN: compiler.tests : hey ( -- ) 3 ;" eval( -- ) ] unit-test
-[ f ] [ \ hey optimized>> ] unit-test
-[ f ] [ \ there optimized>> ] unit-test
-[ ] [ "IN: compiler.tests : hey ( -- ) ;" eval( -- ) ] unit-test
-[ t ] [ \ there optimized>> ] unit-test
-
-: good ( -- ) ;
-: bad ( -- ) good ;
-: ugly ( -- ) bad ;
-
-[ t ] [ \ good optimized>> ] unit-test
-[ t ] [ \ bad optimized>> ] unit-test
-[ t ] [ \ ugly optimized>> ] unit-test
-
-[ f ] [ \ good compiled-usage assoc-empty? ] unit-test
-
-[ ] [ "IN: compiler.tests : good ( -- ) 3 ;" eval( -- ) ] unit-test
-
-[ f ] [ \ good optimized>> ] unit-test
-[ f ] [ \ bad optimized>> ] unit-test
-[ f ] [ \ ugly optimized>> ] unit-test
-
-[ t ] [ \ good compiled-usage assoc-empty? ] unit-test
-
-[ ] [ "IN: compiler.tests : good ( -- ) ;" eval( -- ) ] unit-test
-
-[ t ] [ \ good optimized>> ] unit-test
-[ t ] [ \ bad optimized>> ] unit-test
-[ t ] [ \ ugly optimized>> ] unit-test
-
-[ f ] [ \ good compiled-usage assoc-empty? ] unit-test
index e0bb1773c94185d5da0a50d4a0da188e16891060..264b9b0675487e5fdfaa6495b2441de16ef12cbe 100644 (file)
@@ -6,5 +6,4 @@ quotations stack-checker ;
 
 [ ] [ "IN: compiler.tests.redefine16 GENERIC# blah 2 ( foo bar baz -- )" eval( -- ) ] unit-test
 [ ] [ "IN: compiler.tests.redefine16 USING: strings math arrays prettyprint ; M: string blah 1 + 3array . ;" eval( -- ) ] unit-test
-[ ] [ "IN: compiler.tests.redefine16 GENERIC# blah 2 ( foo bar baz -- x )" eval( -- ) ] unit-test
-[ "blah" "compiler.tests.redefine16" lookup 1quotation infer ] must-fail
+[ ] [ "IN: compiler.tests.redefine16 GENERIC# blah 2 ( foo bar baz -- x )" eval( -- ) ] unit-test
\ No newline at end of file
index 769182a8b16986b4d04110e8a3a648d4ecd28874..11b27979d5fd518a8de0a229e19885f6f85f4172 100644 (file)
@@ -3,8 +3,6 @@ sequences.private math.private math combinators strings alien
 arrays memory vocabs parser eval ;
 IN: compiler.tests
 
-\ (compile) must-infer
-
 ! Test empty word
 [ ] [ [ ] compile-call ] unit-test
 
index 4982a3986c83ed512a0457c863e619b9620948b1..966827295715d79c00cf5314db23c60d459cd7de 100755 (executable)
@@ -1,11 +1,27 @@
 IN: compiler.tree.builder.tests
 USING: compiler.tree.builder tools.test sequences kernel
-compiler.tree ;
-
-\ build-tree must-infer
-\ build-tree-with must-infer
-\ build-tree-from-word must-infer
+compiler.tree stack-checker stack-checker.errors ;
 
 : inline-recursive ( -- ) inline-recursive ; inline recursive
 
 [ t ] [ \ inline-recursive build-tree-from-word [ #recursive? ] any? ] unit-test
+
+: bad-recursion-1 ( a -- b )
+    dup [ drop bad-recursion-1 5 ] [ ] if ;
+
+[ \ bad-recursion-1 build-tree-from-word ] [ inference-error? ] must-fail-with
+
+FORGET: bad-recursion-1
+
+: bad-recursion-2 ( obj -- obj )
+    dup [ dup first swap second bad-recursion-2 ] [ ] if ;
+
+[ \ bad-recursion-2 build-tree-from-word ] [ inference-error? ] must-fail-with
+
+FORGET: bad-recursion-2
+
+: bad-bin ( a b -- ) 5 [ 5 bad-bin bad-bin 5 ] [ 2drop ] if ;
+
+[ \ bad-bin build-tree-from-word ] [ inference-error? ] must-fail-with
+
+FORGET: bad-bin
index 5a8706b900106aa0eed1c9e50269711eb42a98dc..d9591e7be2bf4af0ea3f389b9871c5018ebb9755 100644 (file)
@@ -1,4 +1,4 @@
 IN: compiler.tree.checker.tests
 USING: compiler.tree.checker tools.test ;
 
-\ check-nodes must-infer
+
index 7c28866e94ba4770322b2b6b723532280baf0d29..ed4df91eec0fd4304b51985f6afd22d72eaffebe 100644 (file)
@@ -9,8 +9,6 @@ accessors combinators io prettyprint words sequences.deep
 sequences.private arrays classes kernel.private ;
 IN: compiler.tree.dead-code.tests
 
-\ remove-dead-code must-infer
-
 : count-live-values ( quot -- n )
     build-tree
     analyze-recursive
index 9b4a6da12a50ebbf9085e9d573f418dfc61d0294..9bacd51be14eb8c731d2b165118910447b002d62 100644 (file)
@@ -1,8 +1,5 @@
 IN: compiler.tree.debugger.tests
 USING: compiler.tree.debugger tools.test sorting sequences io math.order ;
 
-\ optimized. must-infer
-\ optimizer-report. must-infer
-
 [ [ <=> ] sort ] optimized.
 [ <reversed> [ print ] each ] optimizer-report.
\ No newline at end of file
index d970e04afd815e3c0dc3fe6a9fe822a542270a66..227a1f1dd7b7a900ace0d34a0ffc6d867973eaea 100644 (file)
@@ -7,8 +7,6 @@ compiler.tree.def-use arrays kernel.private sorting math.order
 binary-search compiler.tree.checker ;
 IN: compiler.tree.def-use.tests
 
-\ compute-def-use must-infer
-
 [ t ] [
     [ 1 2 3 ] build-tree compute-def-use drop
     def-use get {
index 9a226b954f7d1c3077d181c9873598009be7383e..bcb8b2f80a2b4c5c4d0b1a92d2b13195f86b6e79 100644 (file)
@@ -11,8 +11,6 @@ compiler.tree.propagation.info stack-checker.errors
 compiler.tree.checker
 kernel.private ;
 
-\ escape-analysis must-infer
-
 GENERIC: count-unboxed-allocations* ( m node -- n )
 
 : (count-unboxed-allocations) ( m node -- n )
index 680ae0b1709f0a28abe2696ad810a8b2afab1bf7..3b4574effe4b1751e91e2ff52c5e0363f06b97c3 100644 (file)
@@ -6,9 +6,6 @@ compiler.tree.normalization.renaming
 compiler.tree compiler.tree.checker
 sequences accessors tools.test kernel math ;
 
-\ count-introductions must-infer
-\ normalize must-infer
-
 [ 3 ] [ [ 3drop 1 2 3 ] build-tree count-introductions ] unit-test
 
 [ 4 ] [ [ 3drop 1 2 3 3drop drop ] build-tree count-introductions ] unit-test
index 1075e441e79ee68406031d4e101e91473884acdf..5d05947b8ac23a0cceda00a45d8e1a6cc993696b 100644 (file)
@@ -1,4 +1,4 @@
 USING: compiler.tree.optimizer tools.test ;
 IN: compiler.tree.optimizer.tests
 
-\ optimize-tree must-infer
+
index 5b9b49811f6ae4e2ec2065f960524686fc22fabc..f6308ac40ac4dd61b5992c8386a4009f0380c3f8 100644 (file)
@@ -12,8 +12,6 @@ specialized-arrays.double system sorting math.libm
 math.intervals ;
 IN: compiler.tree.propagation.tests
 
-\ propagate must-infer
-
 [ V{ } ] [ [ ] final-classes ] unit-test
 
 [ V{ fixnum } ] [ [ 1 ] final-classes ] unit-test
index 971675d3671e2a21e68cd7774d29a449b2e7b877..80edae076f75b5459cc091d21905e8f68561583d 100644 (file)
@@ -10,8 +10,6 @@ compiler.tree.combinators ;
 [ { f t t t } ] [ t { f f t t } (tail-calls) ] unit-test
 [ { f f f t } ] [ t { f f t f } (tail-calls) ] unit-test
 
-\ analyze-recursive must-infer
-
 : label-is-loop? ( nodes word -- ? )
     [
         {
@@ -21,8 +19,6 @@ compiler.tree.combinators ;
         } 2&&
     ] curry contains-node? ;
 
-\ label-is-loop? must-infer
-
 : label-is-not-loop? ( nodes word -- ? )
     [
         {
@@ -32,8 +28,6 @@ compiler.tree.combinators ;
         } 2&&
     ] curry contains-node? ;
 
-\ label-is-not-loop? must-infer
-
 : loop-test-1 ( a -- )
     dup [ 1+ loop-test-1 ] [ drop ] if ; inline recursive
                           
index 81ba01f1e2b0adb54e70ed0a3b009ff1a18462a6..8654a6f983e778b9d28ae006025d900c3fd88126 100644 (file)
@@ -8,8 +8,6 @@ compiler.tree.def-use kernel accessors sequences math
 math.private sorting math.order binary-search sequences.private
 slots.private ;
 
-\ unbox-tuples must-infer
-
 : test-unboxing ( quot -- )
     build-tree
     analyze-recursive
index 7ff2a33d92239fcba935a00cd5c72726953b4d38..334ff9e11a4c9bdcb490302583055b6a57635fa7 100644 (file)
@@ -2,8 +2,6 @@ IN: db.pools.tests
 USING: db.pools tools.test continuations io.files io.files.temp
 io.directories namespaces accessors kernel math destructors ;
 
-\ <db-pool> must-infer
-
 { 1 0 } [ [ ] with-db-pool ] must-infer-as
 
 { 1 0 } [ [ ] with-pooled-db ] must-infer-as
index 375ee509bba339b85ba0a63e7c7cb7142492345c..afdee3e89f25f61bb0e8d139fd0488993c90b858 100644 (file)
@@ -592,17 +592,6 @@ string-encoding-test "STRING_ENCODING_TEST" {
 [ test-string-encoding ] test-sqlite
 [ test-string-encoding ] test-postgresql
 
-! Don't comment these out. These words must infer
-\ bind-tuple must-infer
-\ insert-tuple must-infer
-\ update-tuple must-infer
-\ delete-tuples must-infer
-\ select-tuple must-infer
-\ define-persistent must-infer
-\ ensure-table must-infer
-\ create-table must-infer
-\ drop-table must-infer
-
 : test-queries ( -- )
     [ ] [ exam ensure-table ] unit-test
     [ ] [ 1000 [ random-exam insert-tuple ] times ] unit-test
index b4417532b4f64fc3f7aa018766f16ee9460f5f52..37ec1d3e15b3d763787ee4c94c3fe9ef614a834a 100644 (file)
@@ -43,8 +43,6 @@ WHERE
 
 >>
 
-\ sqsq must-infer
-
 [ 16 ] [ 2 sqsq ] unit-test
 
 <<
index 220a8cd04cf95c242a1cc8b1d9775ee8a76689fb..54c32e7b4afe765ca5e53dea00d080046fff1508 100644 (file)
@@ -1,6 +1,3 @@
 USING: furnace.auth tools.test ;
 IN: furnace.auth.tests
 
-\ logged-in-username must-infer
-\ <protected> must-infer
-\ new-realm must-infer
index d0fdf22c271a42a5f54f2fb34e91503a66014f32..996047e83d504906e21150ac44229f4a0eec2738 100644 (file)
@@ -1,4 +1,4 @@
 IN: furnace.auth.features.edit-profile.tests
 USING: tools.test furnace.auth.features.edit-profile ;
 
-\ allow-edit-profile must-infer
+
index b589c52624ce5954afaf31e58c34d33a9dd79866..313b8ef3978b25d0bfed00faf84c4a025aca415c 100644 (file)
@@ -1,4 +1,4 @@
 IN: furnace.auth.features.recover-password
 USING: tools.test furnace.auth.features.recover-password ;
 
-\ allow-password-recovery must-infer
+
index e770f355862aeba4ed111e8a46de7dc4615dd5f2..42acda416c43432029ec83ba10c1d1a7ad15b6f0 100644 (file)
@@ -1,4 +1,4 @@
 IN: furnace.auth.features.registration.tests
 USING: tools.test furnace.auth.features.registration ;
 
-\ allow-registration must-infer
+
index 64f7bd3b9636e2c85691d59f250925953a1fcb93..aabd0c5c303a24caa77db121c62ec722a2249536 100644 (file)
@@ -1,4 +1,4 @@
 IN: furnace.auth.login.tests\r
 USING: tools.test furnace.auth.login ;\r
 \r
-\ <login-realm> must-infer\r
+\r
index 34357ae701ae40717048c46d90b788be8bc4db02..15698d8e9b56941ed06c68414b97c18187af309a 100644 (file)
@@ -1,4 +1,4 @@
 IN: furnace.db.tests
 USING: tools.test furnace.db ;
 
-\ <db-persistence> must-infer
+
index 9b928f3691cb84d7e15bf71b773b04eeb4f2d046..bcd8843b24d4b4b5d237dce0452c4f78529cc3a7 100644 (file)
@@ -26,5 +26,3 @@ TUPLE: blahblah quux ;
 [ "a string, a fixnum, or an integer" ]
 [ [ { $or string fixnum integer } print-element ] with-string-writer ] unit-test
 
-\ print-element must-infer
-\ print-topic must-infer
\ No newline at end of file
index ac9223b5d213cc13f999695ba424d10431e62949..cafeb009a40962d9bdefe02369118126567eeb3f 100644 (file)
@@ -3,11 +3,6 @@ help.markup help.syntax kernel sequences tools.test words parser
 namespaces assocs source-files eval ;
 IN: help.topics.tests
 
-\ article-name must-infer
-\ article-title must-infer
-\ article-content must-infer
-\ article-parent must-infer
-
 ! Test help cross-referencing
 
 [ ] [ "Test B" { "Hello world." } <article> { "test" "b" } add-article ] unit-test
index 72ceea20a0155d875f112474eb0f65a10777355e..da2e5b5991948ad79d8077fbd77b723aadfc9dbe 100644 (file)
@@ -4,8 +4,6 @@ io.streams.null accessors inspector html.streams
 html.components html.forms namespaces
 xml.writer ;
 
-\ render must-infer
-
 [ ] [ begin-form ] unit-test
 
 [ ] [ 3 "hi" set-value ] unit-test
index 4dcc6b8813312af25a6d0924a0b43294e03552f0..4f786cb22c195894b461d6e6c6324d90ba89afc7 100644 (file)
@@ -1,8 +1,6 @@
 USING: http.client http.client.private http tools.test
 namespaces urls ;
 
-\ download must-infer
-
 [ "localhost" f ] [ "localhost" parse-host ] unit-test
 [ "localhost" 8888 ] [ "localhost:8888" parse-host ] unit-test
 
index 2c8db272596b3d933515c6141a80fbff5354437a..08974aca3b54c208b7905aa2266fabbe4cea8cf2 100644 (file)
@@ -3,8 +3,6 @@ tools.test kernel namespaces accessors io http math sequences
 assocs arrays classes words urls ;
 IN: http.server.dispatchers.tests
 
-\ find-responder must-infer
-
 TUPLE: mock-responder path ;
 
 C: <mock-responder> mock-responder
index 14855ca8755aa64f7e063da595febd367a35e253..72ff111db93ae2185987cee4270d1796cec90d78 100644 (file)
@@ -2,8 +2,6 @@ IN: http.server.redirection.tests
 USING: http http.server.redirection urls accessors
 namespaces tools.test present kernel ;
 
-\ relative-to-request must-infer
-
 [
     <request>
         <url>
index 171973fcd8fcb01c44ddcdffe99fdfa52da03d69..3dc97098a4271e6b0c66aad32ac83c4aa201e5e4 100644 (file)
@@ -4,8 +4,6 @@ IN: http.server.tests
 
 [ t ] [ [ \ + first ] [ <500> ] recover response? ] unit-test
 
-\ make-http-error must-infer
-
 [ "text/plain; charset=UTF-8" ] [
     <response>
         "text/plain" >>content-type
index b94bc0635c16245d431d02e03282fe3aa3a4fcdf..7b19f56b107b43a73f9b477ad8e13bd632db1d2b 100644 (file)
@@ -3,9 +3,6 @@ io.directories kernel io.pathnames accessors tools.test
 sequences io.files.temp ;
 IN: io.files.info.tests
 
-\ file-info must-infer
-\ link-info must-infer
-
 [ t ] [
     temp-directory [ "hi41" "test41" utf8 set-file-contents ] with-directory
     temp-directory "test41" append-path utf8 file-contents "hi41" =
index 003f38202073b19339ba25eacf182cfa3857bd25..da7284dbe5d0b3f85b345b5e304966416e8bf0e2 100644 (file)
@@ -1,6 +1,3 @@
 IN: io.launcher.tests
 USING: tools.test io.launcher ;
 
-\ <process-stream> must-infer
-\ <process-reader> must-infer
-\ <process-writer> must-infer
index ace93ace4434615e08e73ef569baa642a1793354..db8e02ae73881f739156f3ed6e9f612096dbc02a 100644 (file)
@@ -4,8 +4,6 @@ concurrency.mailboxes tools.test destructors io.files.info
 io.pathnames io.files.temp io.directories.hierarchy ;
 IN: io.monitors.recursive.tests
 
-\ pump-thread must-infer
-
 SINGLETON: mock-io-backend
 
 TUPLE: counter i ;
index 79cd7e9e9ff106628bac944b80440591a1190493..a7ee649400a4d353f65753e630be3229d914c45d 100644 (file)
@@ -1,4 +1,4 @@
 IN: io.monitors.windows.nt.tests\r
 USING: io.monitors.windows.nt tools.test ;\r
 \r
-\ fill-queue-thread must-infer\r
+\r
index a3bfacc8a88cf08d9ba5a2f2c6ba98d7f11817e4..7c4dcc17d1031879f8df3c30eb75a4539bca8925 100644 (file)
@@ -5,7 +5,6 @@ io.backend.unix classes words destructors threads tools.test
 concurrency.promises byte-arrays locals calendar io.timeouts
 io.sockets.secure.unix.debug ;
 
-\ <secure-config> must-infer
 { 1 0 } [ [ ] with-secure-context ] must-infer-as
 
 [ ] [ <promise> "port" set ] unit-test
index 86c3681c2a95ddfc66498e8d8392946021676d2e..0259e4ab0b16c49b4357f88e402fbd6522a1353c 100644 (file)
@@ -1,8 +1,2 @@
 IN: io.styles.tests
 USING: io.styles tools.test ;
-
-\ stream-format must-infer
-\ stream-write-table must-infer
-\ make-span-stream must-infer
-\ make-block-stream must-infer
-\ make-cell-stream must-infer
\ No newline at end of file
index 7d9a9ffd2764f4bf795a9cd0a5cf5d7e4a53666c..3aa10a0687493ff9ca9f883a716eb34f74ca998b 100644 (file)
@@ -2,10 +2,6 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: tools.test lcs ;
 
-\ lcs must-infer
-\ diff must-infer
-\ levenshtein must-infer
-
 [ 3 ] [ "sitting" "kitten" levenshtein ] unit-test
 [ 3 ] [ "kitten" "sitting" levenshtein ] unit-test
 [ 1 ] [ "freshpak" "freshpack" levenshtein ] unit-test
index ee714f7ef76cf731997c1bc0c26ee60f7a5443db..ad785160591fd2fab92a293997aa23969a8f4700 100644 (file)
@@ -1,14 +1,14 @@
 IN: locals.backend.tests
-USING: tools.test locals.backend kernel arrays ;
+USING: tools.test locals.backend kernel arrays accessors ;
 
 : get-local-test-1 ( -- x ) 3 1 load-locals 0 get-local 1 drop-locals ;
 
-\ get-local-test-1 must-infer
+\ get-local-test-1 def>> must-infer
 
 [ 3 ] [ get-local-test-1 ] unit-test
 
 : get-local-test-2 ( -- x ) 3 4 2 load-locals -1 get-local 2 drop-locals ;
 
-\ get-local-test-2 must-infer
+\ get-local-test-2 def>> must-infer
 
 [ 3 ] [ get-local-test-2 ] unit-test
index d472a8b22b79a28b365e881a95d8ce53ec6139b9..68fa8dbda0362d9018548056ebecfcb88ea6e322 100644 (file)
@@ -43,8 +43,8 @@ IN: locals.tests
 
 [ { 1 2 } ] [ 2 let-test-4 ] unit-test
 
-:: let-test-5 ( a -- b )
-    a [let | a [ ] b [ ] | a b 2array ] ;
+:: let-test-5 ( a -- b )
+    a [let | a [ ] b [ ] | a b 2array ] ;
 
 [ { 2 1 } ] [ 1 2 let-test-5 ] unit-test
 
@@ -129,7 +129,8 @@ write-test-2 "q" set
 SYMBOL: a
 
 :: use-test ( a b c -- a b c )
-    USE: kernel ;
+    USE: kernel
+    a b c ;
 
 [ t ] [ a symbol? ] unit-test
 
@@ -171,9 +172,9 @@ M:: string lambda-generic ( a b -- c ) a b lambda-generic-2 ;
 
 [ ] [ \ lambda-generic see ] unit-test
 
-:: unparse-test-1 ( a -- ) [let | a! [ ] | ] ;
+:: unparse-test-1 ( a -- ) [let | a! [ ] | ] ;
 
-[ "[let | a! [ ] | ]" ] [
+[ "[let | a! [ ] | ]" ] [
     \ unparse-test-1 "lambda" word-prop body>> first unparse
 ] unit-test
 
@@ -286,7 +287,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
         { [ a b > ] [ 5 ] }
     } cond ;
 
-\ cond-test must-infer
+\ cond-test def>> must-infer
 
 [ 3 ] [ 1 2 cond-test ] unit-test
 [ 4 ] [ 2 2 cond-test ] unit-test
@@ -295,7 +296,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
 :: 0&&-test ( a -- ? )
     { [ a integer? ] [ a even? ] [ a 10 > ] } 0&& ;
 
-\ 0&&-test must-infer
+\ 0&&-test def>> must-infer
 
 [ f ] [ 1.5 0&&-test ] unit-test
 [ f ] [ 3 0&&-test ] unit-test
@@ -305,7 +306,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
 :: &&-test ( a -- ? )
     { [ a integer? ] [ a even? ] [ a 10 > ] } && ;
 
-\ &&-test must-infer
+\ &&-test def>> must-infer
 
 [ f ] [ 1.5 &&-test ] unit-test
 [ f ] [ 3 &&-test ] unit-test
@@ -321,7 +322,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
         ]
     ] ;
 
-\ let-and-cond-test-1 must-infer
+\ let-and-cond-test-1 def>> must-infer
 
 [ 20 ] [ let-and-cond-test-1 ] unit-test
 
@@ -332,7 +333,7 @@ M:: sequence method-with-locals ( a -- y ) a reverse ;
         ]
     ] ;
 
-\ let-and-cond-test-2 must-infer
+\ let-and-cond-test-2 def>> must-infer
 
 [ { 10 20 } ] [ let-and-cond-test-2 ] unit-test
 
@@ -388,7 +389,7 @@ ERROR: punned-class x ;
         { 5 [ a a ^ ] }
     } case ;
 
-\ big-case-test must-infer
+\ big-case-test def>> must-infer
 
 [ 9 ] [ 3 big-case-test ] unit-test
 
@@ -400,7 +401,7 @@ ERROR: punned-class x ;
         [| x | x 12 + { "howdy" } nth ]
     } case ;
 
-\ littledan-case-problem-1 must-infer
+\ littledan-case-problem-1 def>> must-infer
 
 [ "howdy" ] [ -12 \ littledan-case-problem-1 def>> call ] unit-test
 [ "howdy" ] [ -12 littledan-case-problem-1 ] unit-test
@@ -412,7 +413,7 @@ ERROR: punned-class x ;
         [| x | x a - { "howdy" } nth ]
     } case ;
 
-\ littledan-case-problem-2 must-infer
+\ littledan-case-problem-2 def>> must-infer
 
 [ "howdy" ] [ -12 \ littledan-case-problem-2 def>> call ] unit-test
 [ "howdy" ] [ -12 littledan-case-problem-2 ] unit-test
@@ -424,7 +425,7 @@ ERROR: punned-class x ;
         [| x | x a - { "howdy" } nth ]
     } cond ;
 
-\ littledan-cond-problem-1 must-infer
+\ littledan-cond-problem-1 def>> must-infer
 
 [ f ] [ -12 \ littledan-cond-problem-1 def>> call ] unit-test
 [ 4 ] [ 12 \ littledan-cond-problem-1 def>> call ] unit-test
@@ -448,12 +449,12 @@ ERROR: punned-class x ;
 : littledan-case-problem-4 ( a -- b )
     [ 1 + ] littledan-case-problem-3 ;
 
-\ littledan-case-problem-4 must-infer
+\ littledan-case-problem-4 def>> must-infer
 */
 
 GENERIC: lambda-method-forget-test ( a -- b )
 
-M:: integer lambda-method-forget-test ( a -- b ) ;
+M:: integer lambda-method-forget-test ( a -- b ) ;
 
 [ ] [ [ M\ integer lambda-method-forget-test forget ] with-compilation-unit ] unit-test
 
@@ -467,7 +468,7 @@ M:: integer lambda-method-forget-test ( a -- b ) ;
 :: (funny-macro-test) ( obj quot -- ? ) obj { quot } 1&& ; inline
 : funny-macro-test ( n -- ? ) [ odd? ] (funny-macro-test) ;
 
-\ funny-macro-test must-infer
+\ funny-macro-test def>> must-infer
 
 [ t ] [ 3 funny-macro-test ] unit-test
 [ f ] [ 2 funny-macro-test ] unit-test
@@ -483,11 +484,11 @@ M:: integer lambda-method-forget-test ( a -- b ) ;
 
 :: FAILdog-1 ( -- b ) { [| c | c ] } ;
 
-\ FAILdog-1 must-infer
+\ FAILdog-1 def>> must-infer
 
 :: FAILdog-2 ( a -- b ) a { [| c | c ] } cond ;
 
-\ FAILdog-2 must-infer
+\ FAILdog-2 def>> must-infer
 
 [ 3 ] [ 3 [| a | \ a ] call ] unit-test
 
@@ -518,7 +519,7 @@ M:: integer lambda-method-forget-test ( a -- b ) ;
         { [ is-integer? ] [ is-even? ] [ >10? ] } &&
     ] ;
 
-\ wlet-&&-test must-infer
+\ wlet-&&-test def>> must-infer
 [ f ] [ 1.5 wlet-&&-test ] unit-test
 [ f ] [ 3 wlet-&&-test ] unit-test
 [ f ] [ 8 wlet-&&-test ] unit-test
@@ -527,13 +528,13 @@ M:: integer lambda-method-forget-test ( a -- b ) ;
 : fry-locals-test-1 ( -- n )
     [let | | 6 '[ [let | A [ 4 ] | A _ + ] ] call ] ;
 
-\ fry-locals-test-1 must-infer
+\ fry-locals-test-1 def>> must-infer
 [ 10 ] [ fry-locals-test-1 ] unit-test
 
 :: fry-locals-test-2 ( -- n )
     [let | | 6 '[ [let | A [ 4 ] | A _ + ] ] call ] ;
 
-\ fry-locals-test-2 must-infer
+\ fry-locals-test-2 def>> must-infer
 [ 10 ] [ fry-locals-test-2 ] unit-test
 
 [ 1 ] [ 3 4 [| | '[ [ _ swap - ] call ] call ] call ] unit-test
index 7698760f84f5db4146c3fbb7e125323e4a59f91f..e10853af183482904fbf7a7a910fd8365aebeaf1 100644 (file)
@@ -26,7 +26,7 @@ CONSTANT: b 2
 
 [ 3 ] [ foo ] unit-test
 [ 3 ] [ { a b } flags ] unit-test
-\ foo must-infer
+\ foo def>> must-infer
 
 [ 1 ] [ { 1 } flags ] unit-test
 
index f875fa31400d069b132c581388bb2796fcff6b69..7368a2aa54b05405b7b4b2bfc1a8573126559c5e 100644 (file)
@@ -31,6 +31,3 @@ T{ model-tester f f } "tester" set
     "tester" get
     "model-c" get value>>
 ] unit-test
-
-\ model-changed must-infer
-\ set-model must-infer
index 7d5cb1e76a834c177d4352f7af700c74d1860d6b..9a15dd210575ffc9f6629fbb9e66c252c8aaee44 100644 (file)
@@ -5,8 +5,6 @@ USING: kernel tools.test strings namespaces make arrays sequences
        peg peg.private peg.parsers accessors words math accessors ;
 IN: peg.tests
 
-\ parse must-infer
-
 [ ] [ reset-pegs ] unit-test
 
 [
index 96d89d461166b0315c793f5b5a7268f4dc852efd..b22a5ef0d0da6a0f258ac48e142948e616680099 100644 (file)
@@ -17,5 +17,3 @@ IN: peg.search.tests
   "abc 123 def 456" 'integer' [ 2 * number>string ] action replace
 ] unit-test
 
-\ search must-infer
-\ replace must-infer
index c232db853339ced32223fcb3a223521b9b9b26ee..95fa70558d0d6ed4feb5d17f8354fdb71074b8cc 100644 (file)
@@ -3,10 +3,6 @@ USING: accessors tools.test persistent.vectors
 persistent.sequences sequences kernel arrays random namespaces
 vectors math math.order ;
 
-\ new-nth must-infer
-\ ppush must-infer
-\ ppop must-infer
-
 [ 0 ] [ PV{ } length ] unit-test
 
 [ 1 ] [ 3 PV{ } ppush length ] unit-test
index 0479b104ccced7f45d3c35fe9fb8c0519e4a0c9d..1f72fa04bad26ff9ef8900920eb6f2f5414fb739 100644 (file)
@@ -4,10 +4,6 @@ USING: regexp tools.test kernel sequences regexp.parser regexp.private
 eval strings multiline accessors ;
 IN: regexp-tests
 
-\ <regexp> must-infer
-\ compile-regexp must-infer
-\ matches? must-infer
-
 [ f ] [ "b" "a*" <regexp> matches? ] unit-test
 [ t ] [ "" "a*" <regexp> matches? ] unit-test
 [ t ] [ "a" "a*" <regexp> matches? ] unit-test
index df6510afbf087b6fb471e901e308d66f5199a887..b8df0b7b5ba5d5a679199e981138fe9884cbc396 100644 (file)
@@ -4,8 +4,6 @@ namespaces logging accessors assocs sorting smtp.private
 concurrency.promises system ;
 IN: smtp.tests
 
-\ send-email must-infer
-
 { 0 0 } [ [ ] with-smtp-connection ] must-infer-as
 
 [ "hello\nworld" validate-address ] must-fail
index 6ac4fce0c0da773928788387b29be894ae0df665..814f528cdbf8dcd0ff48517a7e299e6f4838f88c 100644 (file)
@@ -10,7 +10,7 @@ sequences.private destructors combinators eval locals.backend
 system compiler.units ;
 IN: stack-checker.tests
 
-\ infer. must-infer
+[ 1234 infer ] must-fail
 
 { 0 2 } [ 2 "Hello" ] must-infer-as
 { 1 2 } [ dup ] must-infer-as
@@ -65,11 +65,6 @@ IN: stack-checker.tests
 
 { 1 1 } [ simple-recursion-2 ] must-infer-as
 
-: bad-recursion-2 ( obj -- obj )
-    dup [ dup first swap second bad-recursion-2 ] [ ] if ;
-
-[ [ bad-recursion-2 ] infer ] must-fail
-
 : funny-recursion ( obj -- obj )
     dup [ funny-recursion 1 ] [ 2 ] if drop ;
 
@@ -196,94 +191,11 @@ DEFER: blah4
     over string? [ 2array throw ] unless
 ] must-infer-as
 
-! Regression
-
-! This order of branches works
-DEFER: do-crap
-: more-crap ( obj -- ) dup [ drop ] [ dup do-crap call ] if ;
-: do-crap ( obj -- ) dup [ more-crap ] [ do-crap ] if ;
-[ [ do-crap ] infer ] must-fail
-
-! This one does not
-DEFER: do-crap*
-: more-crap* ( obj -- ) dup [ drop ] [ dup do-crap* call ] if ;
-: do-crap* ( obj -- ) dup [ do-crap* ] [ more-crap* ] if ;
-[ [ do-crap* ] infer ] must-fail
-
 ! Regression
 : too-deep ( a b -- c )
     dup [ drop ] [ 2dup too-deep too-deep * ] if ; inline recursive
 { 2 1 } [ too-deep ] must-infer-as
 
-! Error reporting is wrong
-MATH: xyz ( a b -- c )
-M: fixnum xyz 2array ;
-M: float xyz
-    [ 3 ] bi@ swapd [ 2array swap ] dip 2array swap ;
-
-[ [ xyz ] infer ] [ inference-error? ] must-fail-with
-
-! Doug Coleman discovered this one while working on the
-! calendar library
-DEFER: A
-DEFER: B
-DEFER: C
-
-: A ( a -- )
-    dup {
-        [ drop ]
-        [ A ]
-        [ \ A no-method ]
-        [ dup C A ]
-    } dispatch ;
-
-: B ( b -- )
-    dup {
-        [ C ]
-        [ B ]
-        [ \ B no-method ]
-        [ dup B B ]
-    } dispatch ;
-
-: C ( c -- )
-    dup {
-        [ A ]
-        [ C ]
-        [ \ C no-method ]
-        [ dup B C ]
-    } dispatch ;
-
-{ 1 0 } [ A ] must-infer-as
-{ 1 0 } [ B ] must-infer-as
-{ 1 0 } [ C ] must-infer-as
-
-! I found this bug by thinking hard about the previous one
-DEFER: Y
-: X ( a b -- c d ) dup [ swap Y ] [ ] if ;
-: Y ( a b -- c d ) X ;
-
-{ 2 2 } [ X ] must-infer-as
-{ 2 2 } [ Y ] must-infer-as
-
-! This one comes from UI code
-DEFER: #1
-: #2 ( a b: ( -- ) -- ) dup [ call ] [ 2drop ] if ; inline
-: #3 ( a -- ) [ #1 ] #2 ;
-: #4 ( a -- ) dup [ drop ] [ dup #4 dup #3 call ] if ;
-: #1 ( a -- ) dup [ dup #4 dup #3 ] [ ] if drop ;
-
-[ \ #4 def>> infer ] must-fail
-[ [ #1 ] infer ] must-fail
-
-! Similar
-DEFER: bar
-: foo ( a b -- c d ) dup [ 2drop f f bar ] [ ] if ;
-: bar ( a b -- ) [ 2 2 + ] t foo drop call drop ;
-
-[ [ foo ] infer ] must-fail
-
-[ 1234 infer ] must-fail
-
 ! This used to hang
 [ [ [ dup call ] dup call ] infer ]
 [ inference-error? ] must-fail-with
@@ -311,16 +223,6 @@ DEFER: bar
 [ [ [ [ drop 3 ] swap call ] dup call ] infer ]
 [ inference-error? ] must-fail-with
 
-! This form should not have a stack effect
-
-: bad-recursion-1 ( a -- b )
-    dup [ drop bad-recursion-1 5 ] [ ] if ;
-
-[ [ bad-recursion-1 ] infer ] must-fail
-
-: bad-bin ( a b -- ) 5 [ 5 bad-bin bad-bin 5 ] [ 2drop ] if ;
-[ [ bad-bin ] infer ] must-fail
-
 [ [ 1 drop-locals ] infer ] [ inference-error? ] must-fail-with
 
 ! Regression
@@ -333,114 +235,14 @@ DEFER: bar
 
 [ [ 3 [ ] curry 1 2 [ ] 2curry if ] infer ] must-fail
 
-! Test number protocol
-\ bitor must-infer
-\ bitand must-infer
-\ bitxor must-infer
-\ mod must-infer
-\ /i must-infer
-\ /f must-infer
-\ /mod must-infer
-\ + must-infer
-\ - must-infer
-\ * must-infer
-\ / must-infer
-\ < must-infer
-\ <= must-infer
-\ > must-infer
-\ >= must-infer
-\ number= must-infer
-
-! Test object protocol
-\ = must-infer
-\ clone must-infer
-\ hashcode* must-infer
-
-! Test sequence protocol
-\ length must-infer
-\ nth must-infer
-\ set-length must-infer
-\ set-nth must-infer
-\ new must-infer
-\ new-resizable must-infer
-\ like must-infer
-\ lengthen must-infer
-
-! Test assoc protocol
-\ at* must-infer
-\ set-at must-infer
-\ new-assoc must-infer
-\ delete-at must-infer
-\ clear-assoc must-infer
-\ assoc-size must-infer
-\ assoc-like must-infer
-\ assoc-clone-like must-infer
-\ >alist must-infer
 { 1 3 } [ [ 2drop f ] assoc-find ] must-infer-as
 
-! Test some random library words
-\ 1quotation must-infer
-\ string>number must-infer
-\ get must-infer
-
-\ push must-infer
-\ append must-infer
-\ peek must-infer
-
-\ reverse must-infer
-\ member? must-infer
-\ remove must-infer
-\ natural-sort must-infer
-
-\ forget must-infer
-\ define-class must-infer
-\ define-tuple-class must-infer
-\ define-union-class must-infer
-\ define-predicate-class must-infer
-\ instance? must-infer
-\ next-method-quot must-infer
-
 ! Test words with continuations
 { 0 0 } [ [ drop ] callcc0 ] must-infer-as
 { 0 1 } [ [ 4 swap continue-with ] callcc1 ] must-infer-as
 { 2 1 } [ [ + ] [ ] [ ] cleanup ] must-infer-as
 { 2 1 } [ [ + ] [ 3drop 0 ] recover ] must-infer-as
 
-\ dispose must-infer
-
-! Test stream protocol
-\ set-timeout must-infer
-\ stream-read must-infer
-\ stream-read1 must-infer
-\ stream-readln must-infer
-\ stream-read-until must-infer
-\ stream-write must-infer
-\ stream-write1 must-infer
-\ stream-nl must-infer
-\ stream-flush must-infer
-
-! Test stream utilities
-\ lines must-infer
-\ contents must-infer
-
-! Test prettyprinting
-\ . must-infer
-\ short. must-infer
-\ unparse must-infer
-
-\ describe must-infer
-\ error. must-infer
-
-! Test odds and ends
-\ io-thread must-infer
-
-! Incorrect stack declarations on inline recursive words should
-! be caught
-: fooxxx ( a b -- c ) over [ foo ] when ; inline
-: barxxx ( a b -- c ) fooxxx ;
-
-[ [ barxxx ] infer ] must-fail
-
 ! A typo
 { 1 0 } [ { [ ] } dispatch ] must-infer-as
 
@@ -463,7 +265,6 @@ DEFER: deferred-word
 
 { 1 1 } [ [ deferred-word ] [ 3 ] if ] must-infer-as
 
-
 DEFER: an-inline-word
 
 : normal-word-3 ( -- )
@@ -503,9 +304,7 @@ ERROR: custom-error ;
 ] unit-test
 
 ! Regression
-: missing->r-check ( a -- ) 1 load-locals ;
-
-[ [ missing->r-check ] infer ] must-fail
+[ [ 1 load-locals ] infer ] must-fail
 
 ! Corner case
 [ [ [ f dup ] [ dup ] produce ] infer ] must-fail
@@ -513,35 +312,12 @@ ERROR: custom-error ;
 [ [ [ f dup ] [ ] while ] infer ] must-fail
 
 : erg's-inference-bug ( -- ) f dup [ erg's-inference-bug ] when ; inline recursive
-
 [ [ erg's-inference-bug ] infer ] must-fail
-
-: inference-invalidation-a ( -- ) ;
-: inference-invalidation-b ( quot -- ) [ inference-invalidation-a ] dip call ; inline
-: inference-invalidation-c ( a b -- c ) [ + ] inference-invalidation-b ; inline
-
-[ 7 ] [ 4 3 inference-invalidation-c ] unit-test
-
-{ 2 1 } [ [ + ] inference-invalidation-b ] must-infer-as
-
-[ ] [ "IN: stack-checker.tests : inference-invalidation-a ( -- a b ) 1 2 ;" eval( -- ) ] unit-test
-
-[ 3 ] [ inference-invalidation-c ] unit-test
-
-{ 0 1 } [ inference-invalidation-c ] must-infer-as
-
-GENERIC: inference-invalidation-d ( obj -- )
-
-M: object inference-invalidation-d inference-invalidation-c 2drop ;
-
-\ inference-invalidation-d must-infer
-
-[ ] [ "IN: stack-checker.tests : inference-invalidation-a ( -- ) ;" eval( -- ) ] unit-test
-
-[ [ inference-invalidation-d ] infer ] must-fail
+FORGET: erg's-inference-bug
 
 : bad-recursion-3 ( -- ) dup [ [ bad-recursion-3 ] dip ] when ; inline recursive
 [ [ bad-recursion-3 ] infer ] must-fail
+FORGET: bad-recursion-3
 
 : bad-recursion-4 ( -- ) 4 [ dup call roll ] times ; inline recursive
 [ [ [ ] [ 1 2 3 ] over dup bad-recursion-4 ] infer ] must-fail
@@ -562,6 +338,8 @@ M: object inference-invalidation-d inference-invalidation-c 2drop ;
 
 [ [ unbalanced-retain-usage ] infer ] [ inference-error? ] must-fail-with
 
+FORGET: unbalanced-retain-usage
+
 DEFER: eee'
 : ddd' ( ? -- ) [ f eee' ] when ; inline recursive
 : eee' ( ? -- ) [ swap [ ] ] dip ddd' call ; inline recursive
index abb1f2abdb575ce6f492dcf808ec6d25af1519f9..126f6a9648f531c9a952fcc7c8968f130a425edb 100644 (file)
@@ -5,7 +5,12 @@ classes classes.tuple ;
 
 : compose-n-quot ( word n -- quot' ) <repetition> >quotation ;
 : compose-n ( quot n -- ) compose-n-quot call ;
+
+<<
 \ compose-n [ compose-n-quot ] 2 define-transform
+\ compose-n t "no-compile" set-word-prop
+>>
+
 : compose-n-test ( a b c -- x ) 2 \ + compose-n ;
 
 [ 6 ] [ 1 2 3 compose-n-test ] unit-test
index 3ea037352c6b711300740185b993ee18530f9ddc..b0bd5a2ff577c0088a93093a33f8c6c8f8958743 100644 (file)
@@ -2,9 +2,6 @@ USING: syndication io kernel io.files tools.test io.encodings.binary
 calendar urls xml.writer ;
 IN: syndication.tests
 
-\ download-feed must-infer
-\ feed>xml must-infer
-
 : load-news-file ( filename -- feed )
     #! Load an news syndication file and process it, returning
     #! it as an feed tuple.
index 60b54c2a0dbec2f671679e3cbf8807a0510f5a40..4b75cf0bfa33ed04d436bc9ae31834ef0945ac01 100644 (file)
@@ -1,8 +1,5 @@
 USING: tools.test tools.memory ;
 IN: tools.memory.tests
 
-\ room. must-infer
 [ ] [ room. ] unit-test
-
-\ heap-stats. must-infer
 [ ] [ heap-stats. ] unit-test
index 9122edcb67b2be3bb9ec57c441c5a1ff56396639..ac7b33d41e574c041cc8102c434fc48a3665a8e2 100644 (file)
@@ -58,8 +58,8 @@ HELP: must-fail-with
 { $notes "This word is used to test error handling code, ensuring that errors thrown by code contain the relevant debugging information." } ;
 
 HELP: must-infer
-{ $values { "word/quot" "a quotation or a word" } }
-{ $description "Ensures that the quotation or word has a static stack effect without running it." }
+{ $values { "quot" quotation } }
+{ $description "Ensures that the quotation has a static stack effect without running it." }
 { $notes "This word is used to test that code will compile with the optimizing compiler for optimum performance. See " { $link "compiler" } "." } ;
 
 HELP: must-infer-as
index 03f7f006c9ce76edb147ee3f038bac006812da62..c8ce3e01c7fe69c72a1211a305503935cbf3d294 100644 (file)
@@ -1,8 +1,6 @@
 IN: tools.test.tests
 USING: tools.test tools.test.private namespaces kernel sequences ;
 
-\ test-all must-infer
-
 : fake-unit-test ( quot -- )
     [
         "fake" file set
index 1ff47e3d7f38d6c78099d1c4525b658f90393a83..c0c2f1892d57adb9b0c909f08b6b759b44fcd0de 100644 (file)
@@ -56,8 +56,7 @@ SYMBOL: file
 :: (must-infer-as) ( effect quot -- error ? )
     [ quot infer short-effect effect assert= f f ] [ t ] recover ;
 
-:: (must-infer) ( word/quot -- error ? )
-    word/quot dup word? [ '[ _ execute ] ] when :> quot
+:: (must-infer) ( quot -- error ? )
     [ quot infer drop f f ] [ t ] recover ;
 
 TUPLE: did-not-fail ;
index ae1d7ec8bce2d530cf83441c04b791ab9c4faa72..ac263cb79c3c28fcff5327586a05ceefe495679c 100644 (file)
@@ -1,4 +1,2 @@
 IN: ui.event-loop.tests
 USING: ui.event-loop tools.test ;
-
-\ event-loop must-infer
index dab9ef5acf2723f72e46090e94ffad105ba8db96..3076ffc0045081c59fdbe9542fdecd59f2c33fb6 100644 (file)
@@ -1,4 +1,2 @@
 IN: ui.gadgets.books.tests
 USING: tools.test ui.gadgets.books ;
-
-\ <book> must-infer
index 0aa12f72793dff3816c27ba9d54792144f3ae0c3..f7c73b24389d552d2aadea4f3f69763e743695a8 100644 (file)
@@ -28,10 +28,6 @@ T{ foo-gadget } <toolbar> "t" set
     } <radio-buttons> "religion" set
 ] unit-test
 
-\ <radio-buttons> must-infer
-
-\ <checkbox> must-infer
-
 [ 0 ] [
     "religion" get gadget-child value>>
 ] unit-test
index bd610ba53b57d6cf0d2a829bbe35cf1d8a9c96f8..3ba32dc3c29e1c884ca56fbe91ef1d0cf02f0f29 100644 (file)
@@ -42,8 +42,6 @@ IN: ui.gadgets.editors.tests
     ] with-grafted-gadget
 ] unit-test
 
-\ <editor> must-infer
-
 "hello" <model> <model-field> "field" set
 
 "field" get [
index 03219c66fdf5ecc11e53b187e5eeafe049f5c283..77860ba5b571bf3d5157ef4a8dfc188d6ca5e093 100644 (file)
@@ -152,16 +152,3 @@ M: mock-gadget ungraft*
 
     { { f f } { f t } { t f } { t t } } [ notify-combo ] assoc-each
 ] with-string-writer print
-
-\ <gadget> must-infer
-\ unparent must-infer
-\ add-gadget must-infer
-\ add-gadgets must-infer
-\ clear-gadget must-infer
-
-\ relayout must-infer
-\ relayout-1 must-infer
-\ pref-dim must-infer
-
-\ graft* must-infer
-\ ungraft* must-infer
\ No newline at end of file
index 22df1f328ba373e58f1740bf2c8b4cf5ff1a4665..4002c8b40e254b474303b53f83128c90ceb6930b 100644 (file)
@@ -104,5 +104,3 @@ dup layout
     model>> dependencies>> [ range-max value>> ] map
     { 0 0 } =
 ] unit-test
-
-\ <scroller> must-infer
index 402015ee7c4756c56ee6aaad0d6085135b8481b0..3bcea27819fe0658312285ce32aae709e8ad40cb 100644 (file)
@@ -1,5 +1,2 @@
 IN: ui.gestures.tests
 USING: tools.test ui.gestures ;
-
-\ handle-gesture must-infer
-\ send-queued-gesture must-infer
\ No newline at end of file
index 4612ea79b0a1cfe13b783ce9ed2dd5885fb440fa..6e8339a539e64e66d9e492cec9ca09572b34c48c 100644 (file)
@@ -26,5 +26,3 @@ io.streams.string math help help.markup accessors ;
 [ ] [
     [ { $operations \ + } print-element ] with-string-writer drop
 ] unit-test
-
-\ object-operations must-infer
\ No newline at end of file
index 3410560ba9bd228037c923a700dfa255d45d374f..3ae0082be13f6d06e2e0716cf1edf7b3c23a8a46 100644 (file)
@@ -1,4 +1,2 @@
 IN: ui.render.tests
 USING: ui.render tools.test ;
-
-\ draw-gadget must-infer
\ No newline at end of file
index 3757f392c4b8961bf2234603014bde4ebdc37ae1..8027babc3fb3a24e58e0d5d8d34195df595ad359 100644 (file)
@@ -1,5 +1,4 @@
 IN: ui.tools.browser.tests
 USING: tools.test ui.gadgets.debug ui.tools.browser math ;
 
-\ <browser-gadget> must-infer
 [ ] [ \ + <browser-gadget> [ ] with-grafted-gadget ] unit-test
index 44e20fb0fd97d85cb6fdf4d5950587e2b881b3fa..2971b1e8cb93053ecda98e8a7fd8d6f87580f300 100644 (file)
@@ -1,6 +1,4 @@
 IN: ui.tools.inspector.tests
 USING: tools.test ui.tools.inspector math models ;
 
-\ <inspector-gadget> must-infer
-
 [ ] [ \ + <model> <inspector-gadget> com-edit-slot ] unit-test
\ No newline at end of file
index 986e1270ebbb34be2c397034f4600520b84aad57..45b94344a6ff3e861d76818654fad1a403744bd8 100644 (file)
@@ -6,8 +6,6 @@ threads arrays generic threads accessors listener math
 calendar concurrency.promises io ui.tools.common ;
 IN: ui.tools.listener.tests
 
-\ <interactor> must-infer
-
 [
     [ ] [ <interactor> <pane> <pane-stream> >>output "interactor" set ] unit-test
 
index 86bebddbc9367d1899a006d4ad2a22eb25ffa0d1..c1c8fdbff9a1530adb49fa10eb579b5c4a651510 100644 (file)
@@ -1,3 +1,3 @@
 USING: ui.tools.profiler tools.test ;
 
-\ profiler-window must-infer
+
index fefb188239ccbdbaf6acb4c3c6af7495a5c9e101..fe0b57b98061ea43d3bd593b5a5670a80fb5b57e 100644 (file)
@@ -1,4 +1,3 @@
 USING: ui.tools.walker tools.test ;
 IN: ui.tools.walker.tests
 
-\ <walker-gadget> must-infer
index 4b4bf9d9eebb3186805a879c957e5baaa98db8e0..06de4eb9c21a4a2ddc0da69d28081ffcf78ef82d 100644 (file)
@@ -1,5 +1,2 @@
 IN: ui.tests
 USING: ui ui.private tools.test ;
-
-\ open-window must-infer
-\ update-ui must-infer
\ No newline at end of file
index a76f5e78c408c3a1cd8c7955db87d9828d75dc7b..9344d1102ef20ad93793153de4bd087a4e3f45d6 100644 (file)
@@ -4,10 +4,6 @@ USING: unicode.case tools.test namespaces strings unicode.normalize
 unicode.case.private ;
 IN: unicode.case.tests
 
-\ >upper must-infer
-\ >lower must-infer
-\ >title must-infer
-
 [ "Hello How Are You? I'm Good" ] [ "hEllo how ARE yOU? I'm good" >title ] unit-test
 [ "FUSS" ] [ "Fu\u0000DF" >upper ] unit-test
 [ "\u0003C3a\u0003C2 \u0003C3\u0003C2 \u0003C3a\u0003C2" ] [ "\u0003A3A\u0003A3 \u0003A3\u0003A3 \u0003A3A\u0003A3" >lower ] unit-test
index 2e989b32c0f86cfe3901e8e0cb40029c1049ea5f..eae202007760030b07eaecefba45a2ab09558930 100644 (file)
@@ -5,8 +5,6 @@ IN: unix.groups.tests
 
 [ ] [ all-groups drop ] unit-test
 
-\ all-groups must-infer
-
 [ t ] [ real-group-name string? ] unit-test
 [ t ] [ effective-group-name string? ] unit-test
 
index f2a4b7bc27ea54e779e5ada034d4dbca7b9a49f9..cf3747b346a65600641bd1de8173a0f4f5256df5 100644 (file)
@@ -3,11 +3,8 @@
 USING: tools.test unix.users kernel strings math ;
 IN: unix.users.tests
 
-
 [ ] [ all-users drop ] unit-test
 
-\ all-users must-infer
-
 [ t ] [ real-user-name string? ] unit-test
 [ t ] [ effective-user-name string? ] unit-test
 
index e66572dc1b21c5bf1a20e0bafdc2364bd5e815ce..07f42caae36112ced1e7101dcf693094e3ce0bdc 100644 (file)
@@ -38,6 +38,4 @@ word wrap.">
 [ "aaa bb\ncccc\nddddd" ] [ "aaa bb cccc ddddd" 6 wrap-string ] unit-test
 [ "aaa bb\nccccccc\nddddddd" ] [ "aaa bb ccccccc ddddddd" 6 wrap-string ] unit-test
 
-\ wrap-string must-infer
-
 [ "a b c d e f\ng h" ] [ "a b c d e f g h" 11 wrap-string ] unit-test
index 7598b382ba4326f00d6e1665caf50fb56480efb2..6df69a65d66fd3cc4be5e983a4f08516272b72ec 100644 (file)
@@ -79,4 +79,3 @@ IN: wrap.words.tests
     } 35 35 wrap-words [ { } like ] map
 ] unit-test
 
-\ wrap-words must-infer
index 10ab961ec077f94a09904531a1e6de7ca0b0323a..6fcaf780cc368ac9a59b801f542777fdcab0b4c4 100644 (file)
@@ -33,8 +33,6 @@ TAG: neg calculate
     calc-arith
 ] unit-test
 
-\ calc-arith must-infer
-
 XML-NS: foo http://blah.com
 
 [ T{ name { main "bling" } { url "http://blah.com" } } ] [ "bling" foo ] unit-test
@@ -90,7 +88,6 @@ XML-NS: foo http://blah.com
 [ "<x>3</x>" ] [ 3 [XML <x><-></x> XML] xml>string ] unit-test
 [ "<x></x>" ] [ f [XML <x><-></x> XML] xml>string ] unit-test
 
-\ <XML must-infer
 [ [XML <-> XML] ] must-infer
 [ [XML <foo><-></foo> <bar val=<->/> XML] ] must-infer
 
index 1d07aa94063ad07f2c28a979b5d74154846cd84e..74ba931c7998aa871d13d9e151b847e1d397e5d9 100644 (file)
@@ -7,9 +7,7 @@ xml.traversal continuations assocs io.encodings.binary
 sequences.deep accessors io.streams.string ;
 
 ! This is insufficient
-\ read-xml must-infer
 [ [ drop ] each-element ] must-infer
-\ string>xml must-infer
 
 SYMBOL: xml-file
 [ ] [
index 2d31738c4cfdd109768f2df98b50b152af9816d9..ee09668a533c8c41a1c5e3769d2917530efbe27b 100644 (file)
@@ -5,9 +5,6 @@ xml.writer.private io.streams.string xml.traversal sequences
 io.encodings.utf8 io.files accessors io.directories math math.parser ;
 IN: xml.writer.tests
 
-\ write-xml must-infer
-\ xml>string must-infer
-\ pprint-xml must-infer
 ! Add a test for pprint-xml with sensitive-tags
 
 [ "foo" ] [ T{ name { main "foo" } } name>string ] unit-test
index 8d5db4a6e9b613bbc26dc188a8489905db7dc771..d57b8ce28d2e472033a70e3d215dbcd08c98bd20 100644 (file)
@@ -3,8 +3,6 @@ USING: xmode.code2html xmode.catalog
 tools.test multiline splitting memoize
 kernel io.streams.string xml.writer ;
 
-\ htmlize-file must-infer
-
 [ ] [ \ (load-mode) reset-memoized ] unit-test
 
 [ ] [
index 1ec675b0cf61a7ac50f053f259497151b5aaca98..8ba09d8e91c01a7b6ce050bc919d7432d91a46c5 100644 (file)
@@ -1,7 +1,3 @@
 IN: checksums.tests
 USING: checksums tools.test ;
 
-\ checksum-bytes must-infer
-\ checksum-stream must-infer
-\ checksum-lines must-infer
-\ checksum-file must-infer
index a3610ff7c56d2e31c628fde3de2bc3d05ece2492..a6af5b8c29bc9a63ea6a6288895befff4c2f853e 100644 (file)
@@ -7,12 +7,6 @@ random stack-checker effects kernel.private sbufs math.order
 classes.tuple accessors ;\r
 IN: classes.algebra.tests\r
 \r
-\ class< must-infer\r
-\ class-and must-infer\r
-\ class-or must-infer\r
-\ flatten-class must-infer\r
-\ flatten-builtin-class must-infer\r
-\r
 : class-and* ( cls1 cls2 cls3 -- ? ) [ class-and ] dip class= ;\r
 \r
 : class-or* ( cls1 cls2 cls3 -- ? ) [ class-or ] dip class= ;\r
index 68cdc20c538748de3655dcbec32ab496aea82bc5..3800d5056aadf60c0cc5510e951fd73d40c175d5 100644 (file)
@@ -599,7 +599,7 @@ must-fail-with
 
 : foo ( a b -- c ) declared-types boa ;
 
-\ foo must-infer
+\ foo def>> must-infer
 
 [ T{ declared-types f 0 "hi" } ] [ 0.0 "hi" foo ] unit-test
 
index a8049f709ec46795dd3ee4afd1b9fed840f1bd5d..dd5fa0603161a5f63bbab8fb79591e587c1eeafe 100644 (file)
@@ -42,7 +42,7 @@ IN: combinators.tests
         { [ dup 2 mod 1 = ] [ drop "odd" ] }
     } cond ;
 
-\ cond-test-1 must-infer
+\ cond-test-1 def>> must-infer
 
 [ "even" ] [ 2 cond-test-1 ] unit-test
 [ "odd" ] [ 3 cond-test-1 ] unit-test
@@ -54,7 +54,7 @@ IN: combinators.tests
         [ drop "something else" ]
     } cond ;
 
-\ cond-test-2 must-infer
+\ cond-test-2 def>> must-infer
 
 [ "true" ] [ t cond-test-2 ] unit-test
 [ "false" ] [ f cond-test-2 ] unit-test
@@ -67,7 +67,7 @@ IN: combinators.tests
         { [ dup f = ] [ drop "false" ] }
     } cond ;
 
-\ cond-test-3 must-infer
+\ cond-test-3 def>> must-infer
 
 [ "something else" ] [ t cond-test-3 ] unit-test
 [ "something else" ] [ f cond-test-3 ] unit-test
@@ -77,7 +77,7 @@ IN: combinators.tests
     {
     } cond ;
 
-\ cond-test-4 must-infer
+\ cond-test-4 def>> must-infer
 
 [ cond-test-4 ] [ class \ no-cond = ] must-fail-with
 
@@ -168,7 +168,7 @@ IN: combinators.tests
         { 4 [ "four" ] }
     } case ;
 
-\ case-test-1 must-infer
+\ case-test-1 def>> must-infer
 
 [ "two" ] [ 2 case-test-1 ] unit-test
 
@@ -186,7 +186,7 @@ IN: combinators.tests
         [ sq ]
     } case ;
 
-\ case-test-2 must-infer
+\ case-test-2 def>> must-infer
 
 [ 25 ] [ 5 case-test-2 ] unit-test
 
@@ -204,7 +204,7 @@ IN: combinators.tests
         [ sq ]
     } case ;
 
-\ case-test-3 must-infer
+\ case-test-3 def>> must-infer
 
 [ "an array" ] [ { 1 2 3 } case-test-3 ] unit-test
 
@@ -222,7 +222,7 @@ CONSTANT: case-const-2 2
         [ drop "demasiado" ]
     } case ;
 
-\ case-test-4 must-infer
+\ case-test-4 def>> must-infer
 
 [ "uno" ] [ 1 case-test-4 ] unit-test
 [ "dos" ] [ 2 case-test-4 ] unit-test
@@ -239,7 +239,7 @@ CONSTANT: case-const-2 2
         [ drop "demasiado" print ]
     } case ;
 
-\ case-test-5 must-infer
+\ case-test-5 def>> must-infer
 
 [ ] [ 1 case-test-5 ] unit-test
 
@@ -296,7 +296,7 @@ CONSTANT: case-const-2 2
         { 3 [ "three" ] }
     } case ;
 
-\ test-case-6 must-infer
+\ test-case-6 def>> must-infer
 
 [ "three" ] [ 3 test-case-6 ] unit-test
 [ "do-not-call" ] [ \ do-not-call test-case-6 ] unit-test
@@ -343,7 +343,7 @@ CONSTANT: case-const-2 2
         { \ ] [ "KFC" ] }
     } case ;
 
-\ test-case-7 must-infer
+\ test-case-7 def>> must-infer
 
 [ "plus" ] [ \ + test-case-7 ] unit-test
 
index 2111cce358676c4e2a09eb9bc00effb1a1a6ebc0..391b87a44fb1afe7bfc90e1139ad6fadee41d785 100644 (file)
@@ -107,4 +107,4 @@ SYMBOL: error-counter
 
 [ { 4 } ] [ { 2 2 } [ + ] with-datastack ] unit-test
 
-\ with-datastack must-infer
+[ with-datastack ] must-infer
index a2d637dcb7a4740e36bc3521977b7ced14c28d23..8f0fb9e97a549e4bba189c19d20cd3ee0595a336 100644 (file)
@@ -4,9 +4,6 @@ io.files io.files.private io.files.temp io.files.unique kernel
 make math sequences system threads tools.test generic.standard ;
 IN: io.files.tests
 
-\ exists? must-infer
-\ (exists?) must-infer
-
 [ ] [ "append-test" temp-file dup exists? [ delete-file ] [ drop ] if ] unit-test
 
 [ ] [ "append-test" temp-file ascii <file-appender> dispose ] unit-test
index 2add8663d812fefbf2e90571f52534eb28021288..a8a57ccdaa947fbbac5ba0d5c43ed9a89342bef1 100644 (file)
@@ -6,8 +6,6 @@ vocabs vocabs.loader accessors eval combinators lexer
 vocabs.parser words.symbol multiline source-files.errors ;
 IN: parser.tests
 
-\ run-file must-infer
-
 [
     [ 1 [ 2 [ 3 ] 4 ] 5 ]
     [ "1\n[\n2\n[\n3\n]\n4\n]\n5" eval( -- a b c ) ]
index 1476715588224c4689ddc5d269d3fb6027519a0d..3d9ce0403dd0a5b98dbdfd47ecdc14549a288915 100644 (file)
@@ -1,5 +1,4 @@
 IN: contributors.tests
 USING: contributors tools.test ;
 
-\ contributors must-infer
 [ ] [ contributors ] unit-test
index d6b5d0559c5f74d45c664020d3ec5a1e58bc54dc..fa598a4ac664e57b555466d59136c6f94253fbdc 100644 (file)
@@ -3,9 +3,6 @@
 USING: infix.ast infix.parser infix.tokenizer tools.test ;
 IN: infix.parser.tests
 
-\ parse-infix must-infer
-\ build-infix-ast must-infer
-
 [ T{ ast-number { value 1 } } ] [ "1" build-infix-ast ] unit-test
 [ T{ ast-negation f T{ ast-number { value 1 } } } ]
 [ "-1" build-infix-ast ] unit-test
index f9c908414a80efabfa8a58c97218f423153d6fe6..b068881b84e0bf64dbfc1a43c17ebda33aa12d4f 100644 (file)
@@ -3,7 +3,6 @@
 USING: infix.ast infix.tokenizer tools.test ;
 IN: infix.tokenizer.tests
 
-\ tokenize-infix must-infer
 [ V{ T{ ast-number f 1 } } ] [ "1" tokenize-infix ] unit-test
 [ V{ T{ ast-number f 1.02 } CHAR: * T{ ast-number f 3 } } ] [ "1.02*3" tokenize-infix ] unit-test
 [ V{ T{ ast-number f 3 } CHAR: / CHAR: ( T{ ast-number f 3 } CHAR: + T{ ast-number f 4 } CHAR: ) } ]
index 9158536ffb0f9f537b71b6b526d72eee3b2a6738..49a5153a8e165362a41443337f6dde5fe09d50ba 100644 (file)
@@ -1,4 +1,2 @@
 USING: tools.test mason.cleanup ;
 IN: mason.cleanup.tests
-
-\ cleanup must-infer
index 73fc311399465537879c25a0e8a8dc3475bfc49f..09f1e13ae9cbf51412f079e841cfae63de97b595 100644 (file)
@@ -1,4 +1,3 @@
 IN: mason.release.upload.tests
 USING: mason.release.upload tools.test ;
 
-\ upload must-infer
index 240c9f86d7f328de2a43018a9e38842bebee47b9..aa66f41d8dead44bcc24fd4b79ff630025a2fa20 100644 (file)
@@ -2,9 +2,6 @@ IN: multi-methods.tests
 USING: multi-methods tools.test math sequences namespaces system
 kernel strings words compiler.units quotations ;
 
-\ GENERIC: must-infer
-\ create-method-in must-infer
-
 DEFER: fake
 \ fake H{ } clone "multi-methods" set-word-prop
 
index 0d6899714d3e46204173bf953a6bbe279f721b4d..69223a418d47aeab72b313e636bfc1cb50037d96 100644 (file)
@@ -4,8 +4,6 @@
 USING: kernel tools.test peg.javascript peg.javascript.ast accessors ;
 IN: peg.javascript.tests
 
-\ parse-javascript must-infer
-
 { T{ ast-begin f V{ T{ ast-number f 123 } } } } [
   "123;" parse-javascript
 ] unit-test
\ No newline at end of file
index a2c50952be18acb3c0c69015ebdc97431e00303a..a521202b1ccac929116babc49b76bc0c136bf9cf 100644 (file)
@@ -5,8 +5,6 @@ USING: kernel tools.test peg peg.javascript.ast peg.javascript.parser
        accessors multiline sequences math peg.ebnf ;
 IN: peg.javascript.parser.tests
 
-\ javascript must-infer
-
 {
   T{
       ast-begin
index f0080a31b2109f1e1dc41f8fa48210a364a5fb76..0fbd55ccfdfe6e17e683f4ba988aa891d798981f 100644 (file)
@@ -4,8 +4,6 @@
 USING: kernel tools.test peg peg.javascript.ast peg.javascript.tokenizer accessors ;
 IN: peg.javascript.tokenizer.tests
 
-\ tokenize-javascript must-infer
-
 {
   V{
     T{ ast-number f 123 }