factor/basis/compiler/tests/tuples.factor

11 lines
228 B
Factor
Raw Normal View History

2008-03-01 17:00:45 -05:00
IN: compiler.tests
2008-02-25 20:37:43 -05:00
USING: kernel tools.test compiler.units ;
2007-09-20 18:09:08 -04:00
TUPLE: color red green blue ;
[ T{ color f 1 2 3 } ]
[ 1 2 3 [ color boa ] compile-call ] unit-test
2007-09-20 18:09:08 -04:00
[ T{ color f f f f } ]
[ [ color new ] compile-call ] unit-test