]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.codegen: fix failing tests
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 9 Oct 2009 14:44:09 +0000 (09:44 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 9 Oct 2009 14:44:09 +0000 (09:44 -0500)
basis/compiler/codegen/codegen-tests.factor

index 225577d0b949b9feb8db8a7d9ef9fe4d5973ffd2..43473ebcbb20bcf05bcc760ce63b56ae236fef26 100644 (file)
@@ -1,14 +1,14 @@
 USING: compiler.codegen.fixup tools.test cpu.architecture math kernel make
-compiler.constants ;
+compiler.constants words ;
 IN: compiler.codegen.tests
 
-[ ] [ [ ] with-fixup drop ] unit-test
-[ ] [ [ \ + %call ] with-fixup drop ] unit-test
+[ ] [ gensym [ ] with-fixup drop ] unit-test
+[ ] [ gensym [ \ + %call ] with-fixup drop ] unit-test
 
-[ ] [ [ <label> dup define-label dup resolve-label %jump-label ] with-fixup drop ] unit-test
-[ ] [ [ <label> dup define-label dup resolve-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup drop ] unit-test
+[ ] [ gensym [ <label> dup define-label dup resolve-label %jump-label ] with-fixup drop ] unit-test
+[ ] [ gensym [ <label> dup define-label dup resolve-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup drop ] unit-test
 
 ! Error checking
-[ [ <label> dup define-label %jump-label ] with-fixup ] must-fail
-[ [ <label> dup define-label B{ 0 0 0 0 } % rc-relative label-fixup ] with-fixup ] must-fail
-[ [ <label> dup define-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup ] must-fail
+[ gensym [ <label> dup define-label %jump-label ] with-fixup ] must-fail
+[ gensym [ <label> dup define-label B{ 0 0 0 0 } % rc-relative label-fixup ] with-fixup ] must-fail
+[ gensym [ <label> dup define-label B{ 0 0 0 0 } % rc-absolute-cell label-fixup ] with-fixup ] must-fail