]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.tree.dead-code: fix test
authorJoe Groff <arcata@gmail.com>
Sat, 15 Oct 2011 06:24:36 +0000 (23:24 -0700)
committerJoe Groff <arcata@gmail.com>
Tue, 18 Oct 2011 04:23:10 +0000 (21:23 -0700)
It was using "read" in an optimization test, but since "read" is now inline, it wasn't getting the expected optimized quotation back.

basis/compiler/tree/dead-code/dead-code-tests.factor

index afdd8fed4e61bf74e4f6077f2073a1015eb9ea2c..e3ed18b19e671451339694c937bf98403b90cd7c 100644 (file)
@@ -75,7 +75,7 @@ IN: compiler.tree.dead-code.tests
 
 [ [ drop 1 ] ] [ [ [ 1 ] dip drop ] optimize-quot ] unit-test
 
-[ [ read drop 1 2 ] ] [ [ read [ 1 2 ] dip drop ] optimize-quot ] unit-test
+[ [ stream-read1 drop 1 2 ] ] [ [ stream-read1 [ 1 2 ] dip drop ] optimize-quot ] unit-test
 
 [ [ over >R + R> ] ] [ [ [ + ] [ drop ] 2bi ] optimize-quot ] unit-test