Fixing long-standing bug in wrap

db4
Daniel Ehrenberg 2009-07-02 20:24:41 -05:00
parent 10f3b4fb18
commit be26a4f63d
2 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,5 @@
! Copyright (C) 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license.
USING: wrap tools.test ;
[ { } ] [ { } 10 10 wrap ] unit-test

View File

@ -77,8 +77,10 @@ SYMBOL: line-ideal
[
line-ideal set
line-max set
[ { } ] [
initialize
[ wrap-step ] reduce
min-cost
post-process
] if-empty
] with-scope ;