2005-03-28 23:45:13 -05:00
|
|
|
IN: temporary
|
2006-05-17 19:05:44 -04:00
|
|
|
USE: sequences
|
2004-08-16 21:11:27 -04:00
|
|
|
USE: errors
|
|
|
|
USE: kernel
|
|
|
|
USE: namespaces
|
|
|
|
USE: test
|
2004-11-25 23:14:17 -05:00
|
|
|
USE: parser
|
2005-06-19 17:50:35 -04:00
|
|
|
USE: io
|
2005-09-17 22:25:18 -04:00
|
|
|
USE: memory
|
2004-08-16 21:11:27 -04:00
|
|
|
|
2006-07-05 23:31:30 -04:00
|
|
|
[ clear drop ] unit-test-fails
|
|
|
|
|
2005-09-20 20:18:01 -04:00
|
|
|
[ f ] [ [ ] catch ] unit-test
|
2004-08-16 21:11:27 -04:00
|
|
|
|
2005-09-20 20:18:01 -04:00
|
|
|
[ 5 ] [ [ 5 throw ] catch ] unit-test
|
2004-08-16 21:11:27 -04:00
|
|
|
|
|
|
|
[ t ] [
|
2005-09-20 20:18:01 -04:00
|
|
|
[ "Hello" throw ] catch drop
|
2005-09-27 00:24:42 -04:00
|
|
|
global [ error get ] bind
|
2004-08-16 21:11:27 -04:00
|
|
|
"Hello" =
|
|
|
|
] unit-test
|
2004-11-25 20:37:05 -05:00
|
|
|
|
2004-11-25 23:14:17 -05:00
|
|
|
"!!! The following error is part of the test" print
|
|
|
|
|
2004-12-25 21:28:47 -05:00
|
|
|
[ ] [ [ 6 [ 12 [ "2 car" ] ] ] print-error ] unit-test
|
2004-11-25 23:14:17 -05:00
|
|
|
|
|
|
|
"!!! The following error is part of the test" print
|
|
|
|
|
2005-09-20 20:18:01 -04:00
|
|
|
[ [ "2 car" ] parse ] catch print-error
|
2004-12-22 22:16:46 -05:00
|
|
|
|
2005-09-28 23:29:00 -04:00
|
|
|
[ f throw ] unit-test-fails
|
2005-08-12 18:02:03 -04:00
|
|
|
|
|
|
|
! See how well callstack overflow is handled
|
|
|
|
: callstack-overflow callstack-overflow f ;
|
|
|
|
[ callstack-overflow ] unit-test-fails
|
|
|
|
|
|
|
|
! Weird PowerPC bug.
|
|
|
|
[ ] [
|
2005-09-20 20:18:01 -04:00
|
|
|
[ "4" throw ] catch drop
|
2005-08-12 18:02:03 -04:00
|
|
|
full-gc
|
|
|
|
full-gc
|
|
|
|
] unit-test
|