]> gitweb.factorcode.org Git - factor.git/commitdiff
Unit tests for inference behavior of call( and execute(
authorDaniel Ehrenberg <littledan@Macintosh-122.local>
Tue, 14 Jul 2009 06:23:21 +0000 (01:23 -0500)
committerDaniel Ehrenberg <littledan@Macintosh-122.local>
Tue, 14 Jul 2009 06:23:21 +0000 (01:23 -0500)
basis/stack-checker/stack-checker-tests.factor

index b84f5618617f93e5401eeb86bdd80ba21320cd78..8fee8df5386180af13a38c3147330b3b45cd76cb 100644 (file)
@@ -375,4 +375,10 @@ DEFER: eee'
 
 ! Found during code review
 [ [ [ drop [ ] ] when call ] infer ] must-fail
-[ swap [ [ drop [ ] ] when call ] infer ] must-fail
\ No newline at end of file
+[ swap [ [ drop [ ] ] when call ] infer ] must-fail
+
+{ 3 1 } [ call( a b -- c ) ] must-infer-as
+{ 3 1 } [ execute( a b -- c ) ] must-infer-as
+
+[ [ call-effect ] infer ] must-fail
+[ [ execute-effect ] infer ] must-fail