factor/library/test/memory.factor

25 lines
545 B
Factor
Raw Normal View History

IN: temporary
2005-05-15 21:17:56 -04:00
USING: generic kernel lists math memory words prettyprint
sequences test ;
2005-02-14 22:15:02 -05:00
TUPLE: testing x y z ;
[ f 1 2 3 ] [ 1 2 3 <testing> [ ] each-slot ] unit-test
[ ] [
num-types [
[
builtin-type [
2005-07-26 16:39:14 -04:00
dup \ cons = [
! too many conses!
drop
] [
"predicate" word-prop instances [
class drop
] each
] ifte
] when*
] keep
] repeat
] unit-test