X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fcompiler%2Ftree%2Fcleanup%2Fcleanup-tests.factor;h=bc8a7b0765092a6139d122bb9d2b16eb33d6f94a;hp=228a4e3efb003bc8a46008189364b03bfc80d85f;hb=3f3d57032bf29190e9bee12d168a4bce6d74653c;hpb=cd1bb8f4c8afba318249c7b756a45aa1c46ea51e diff --git a/basis/compiler/tree/cleanup/cleanup-tests.factor b/basis/compiler/tree/cleanup/cleanup-tests.factor index 228a4e3efb..bc8a7b0765 100755 --- a/basis/compiler/tree/cleanup/cleanup-tests.factor +++ b/basis/compiler/tree/cleanup/cleanup-tests.factor @@ -1,4 +1,3 @@ -IN: compiler.tree.cleanup.tests USING: tools.test kernel.private kernel arrays sequences math.private math generic words quotations alien alien.c-types strings sbufs sequences.private slots.private combinators @@ -17,6 +16,7 @@ compiler.tree.propagation compiler.tree.propagation.info compiler.tree.checker compiler.tree.debugger ; +IN: compiler.tree.cleanup.tests [ t ] [ [ [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test @@ -88,7 +88,7 @@ M: object xyz ; 2over dup xyz drop >= [ 3drop ] [ - [ swap [ call 1+ ] dip ] keep (i-repeat) + [ swap [ call 1 + ] dip ] keep (i-repeat) ] if ; inline recursive : i-repeat ( n quot -- ) [ { integer } declare ] dip 0 -rot (i-repeat) ; inline @@ -543,4 +543,4 @@ cell-bits 32 = [ [ 12 swap nth ] keep 14 ndrop ] cleaned-up-tree nodes>quot -] unit-test \ No newline at end of file +] unit-test