1 USING: generic kernel kernel.private math memory prettyprint io
2 sequences tools.test words namespaces layouts classes
3 classes.builtin arrays quotations io.launcher system ;
11 "-e=USING: memory io prettyprint system ; input-stream gc . 0 exit"
15 [ [ ] instances ] must-infer
17 ! Code GC wasn't kicking in when needed
18 : leak-step 800000 f <array> 1quotation call drop ;
20 : leak-loop 100 [ leak-step ] times ;
22 [ ] [ leak-loop ] unit-test
24 TUPLE: testing x y z ;
26 [ save-image-and-exit ] must-fail
32 "predicate" word-prop instances [
40 2 [ [ [ 3 throw ] instances ] must-fail ] times