2005-03-28 23:45:13 -05:00
|
|
|
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
|
|
|
|
2005-07-25 17:13:35 -04:00
|
|
|
TUPLE: testing x y z ;
|
|
|
|
|
|
|
|
[ f 1 2 3 ] [ 1 2 3 <testing> [ ] each-slot ] unit-test
|
|
|
|
|
2005-04-25 03:33:33 -04:00
|
|
|
[ ] [
|
|
|
|
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
|
2005-04-25 03:33:33 -04:00
|
|
|
] when*
|
|
|
|
] keep
|
|
|
|
] repeat
|
|
|
|
] unit-test
|