]> gitweb.factorcode.org Git - factor.git/commitdiff
continuations.tests: test case for #1187
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 4 Dec 2014 18:19:41 +0000 (19:19 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 4 Dec 2014 18:26:24 +0000 (10:26 -0800)
core/continuations/continuations-tests.factor

index 988be0dd88a6bf3c5257cec15fed13fbec127cd3..cb24f7886ed4dda9abdbb31aa3eb54028aa40388 100644 (file)
@@ -1,6 +1,6 @@
 USING: kernel math namespaces io tools.test sequences vectors
 continuations debugger parser memory arrays words
-kernel.private accessors eval ;
+kernel.private accessors eval splitting ;
 IN: continuations.tests
 
 : (callcc1-test) ( n obj -- n' obj )
@@ -33,6 +33,11 @@ IN: continuations.tests
     "Hello" =
 ] unit-test
 
+! #1187
+[ ] [
+    minor-gc [ split-slice ] ignore-errors minor-gc
+] unit-test
+
 "!!! The following error is part of the test" print
 
 [ ] [ [ 6 [ 12 [ "2 car" ] ] ] print-error ] unit-test
@@ -52,7 +57,7 @@ IN: continuations.tests
 
 ! ! See how well callstack overflow is handled
 ! [ clear drop ] must-fail
-! 
+!
 ! : callstack-overflow callstack-overflow f ;
 ! [ callstack-overflow ] must-fail