factor/library/test/crashes.factor

35 lines
707 B
Factor
Raw Normal View History

2004-08-10 00:58:52 -04:00
IN: scratchpad
USE: errors
2004-08-10 00:58:52 -04:00
USE: kernel
2004-08-27 02:09:24 -04:00
USE: math
2004-08-10 00:58:52 -04:00
USE: namespaces
USE: parser
USE: stack
2004-08-10 00:58:52 -04:00
USE: strings
USE: test
2004-08-27 02:09:24 -04:00
USE: vectors
2004-08-10 00:58:52 -04:00
! Various things that broke CFactor at various times.
2004-08-10 00:58:52 -04:00
! This should run without issue (and tests nothing useful)
! in Java Factor
"20 <sbuf> \"foo\" set" eval
"garbage-collection" eval
[
[ drop ] [ drop ] catch
[ drop ] [ drop ] catch
] keep-datastack
2004-08-27 02:09:24 -04:00
"hello" str>sbuf "x" set
[ -5 "x" get set-sbuf-length ] [ drop ] catch
2004-08-27 23:20:10 -04:00
[ "x" get sbuf>str drop ] [ drop ] catch
2004-08-27 02:09:24 -04:00
10 <vector> "x" set
[ -2 "x" get set-vector-length ] [ drop ] catch
2004-08-27 23:20:10 -04:00
[ "x" get clone drop ] [ drop ] catch
2004-08-27 02:09:24 -04:00
10 [ [ -1000000 <vector> ] [ drop ] catch ] times
10 [ [ -1000000 <sbuf> ] [ drop ] catch ] times