2005-03-28 23:45:13 -05:00
|
|
|
IN: temporary
|
2004-10-01 22:02:54 -04:00
|
|
|
USE: compiler
|
2004-12-18 23:35:20 -05:00
|
|
|
USE: generic
|
2004-10-01 22:02:54 -04:00
|
|
|
USE: test
|
|
|
|
USE: math
|
|
|
|
USE: kernel
|
|
|
|
USE: words
|
2006-02-25 01:45:51 -05:00
|
|
|
USE: arrays
|
|
|
|
USE: sequences
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2005-01-16 17:58:28 -05:00
|
|
|
GENERIC: single-combination-test
|
|
|
|
|
|
|
|
M: object single-combination-test drop ;
|
|
|
|
M: f single-combination-test nip ;
|
2006-02-28 00:26:45 -05:00
|
|
|
M: array single-combination-test drop ;
|
|
|
|
M: integer single-combination-test drop ;
|
2005-01-16 17:58:28 -05:00
|
|
|
|
|
|
|
\ single-combination-test compile
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2004-12-18 23:35:20 -05:00
|
|
|
[ 2 3 ] [ 2 3 t single-combination-test ] unit-test
|
|
|
|
[ 2 3 ] [ 2 3 4 single-combination-test ] unit-test
|
|
|
|
[ 2 f ] [ 2 3 f single-combination-test ] unit-test
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2004-12-18 23:35:20 -05:00
|
|
|
DEFER: single-combination-test-2
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2004-12-18 23:35:20 -05:00
|
|
|
: single-combination-test-4
|
2005-01-16 17:58:28 -05:00
|
|
|
dup [ single-combination-test-2 ] when ;
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2004-12-18 23:35:20 -05:00
|
|
|
: single-combination-test-3
|
2004-10-01 22:02:54 -04:00
|
|
|
drop 3 ;
|
|
|
|
|
2005-01-16 17:58:28 -05:00
|
|
|
GENERIC: single-combination-test-2
|
|
|
|
M: object single-combination-test-2 single-combination-test-3 ;
|
|
|
|
M: f single-combination-test-2 single-combination-test-4 ;
|
|
|
|
|
|
|
|
\ single-combination-test-2 compile
|
2004-10-01 22:02:54 -04:00
|
|
|
|
2004-12-18 23:35:20 -05:00
|
|
|
[ 3 ] [ t single-combination-test-2 ] unit-test
|
|
|
|
[ 3 ] [ 3 single-combination-test-2 ] unit-test
|
2005-01-16 17:58:28 -05:00
|
|
|
[ f ] [ f single-combination-test-2 ] unit-test
|
2005-02-25 17:25:40 -05:00
|
|
|
|
2006-02-28 00:26:45 -05:00
|
|
|
! GENERIC: broken-generic
|
2005-02-25 17:25:40 -05:00
|
|
|
|
2006-02-28 00:26:45 -05:00
|
|
|
! M: fixnum broken-generic 1array broken-generic ;
|
|
|
|
! M: array broken-generic first neg ;
|
2005-02-25 17:25:40 -05:00
|
|
|
|
2006-02-28 00:26:45 -05:00
|
|
|
! : broken-partial-eval 5 broken-generic ;
|
2005-02-25 17:25:40 -05:00
|
|
|
|
2006-02-28 00:26:45 -05:00
|
|
|
! \ broken-partial-eval compile
|
2005-02-25 17:25:40 -05:00
|
|
|
|
2006-02-28 00:26:45 -05:00
|
|
|
! [ -5 ] [ broken-partial-eval ] unit-test
|