Stack trace unit test

darcs
slava 2006-11-16 05:26:43 +00:00
parent c0038a28f9
commit 5293a6c637
3 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,8 @@
- overhaul models, set-model* is crap
- fix windows gcc issue
- robustify stepper -- see if step back past a throw works
- httpd crash
- fep when closing window
+ ui:

View File

@ -64,4 +64,5 @@ PROVIDE: library/compiler
"test/optimizer.factor"
"test/alien.factor"
"test/callbacks.factor"
"test/stack-trace.factor"
} } ;

View File

@ -0,0 +1,12 @@
IN: temporary
USING: errors compiler test namespaces sequences ;
: foo 3 throw 7 ;
: bar foo 4 ;
: baz bar 5 ;
\ baz compile
[ 3 ] [ [ baz ] catch ] unit-test
[ { foo bar baz } ] [
error-stack-trace get symbolic-stack-trace
[ second ] map [ ] subset
] unit-test