factor/library/test/math/math-combinators.factor

14 lines
308 B
Factor
Raw Normal View History

2004-10-03 16:39:32 -04:00
IN: scratchpad
USE: kernel
USE: math
USE: test
2005-01-23 16:47:28 -05:00
USE: namespaces
2004-10-03 16:39:32 -04:00
2005-01-23 16:47:28 -05:00
[ ] [ 5 [ ] times ] unit-test
[ ] [ 0 [ ] times ] unit-test
[ ] [ -1 [ ] times ] unit-test
2004-10-03 16:39:32 -04:00
2005-01-23 16:47:28 -05:00
[ ] [ 5 [ ] repeat ] unit-test
[ [ 0 1 2 3 4 ] ] [ [ 5 [ dup , ] repeat ] make-list ] unit-test
[ [ ] ] [ [ -1 [ dup , ] repeat ] make-list ] unit-test