]> gitweb.factorcode.org Git - factor.git/commitdiff
circular-while*, add corner case test
authorJon Harper <jon.harper87@gmail.com>
Mon, 29 Jul 2013 20:27:17 +0000 (22:27 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 6 Sep 2013 16:57:43 +0000 (09:57 -0700)
basis/circular/circular-tests.factor

index 9f2a22659b0baf8877253106028bef53c0426a53..46a32be773e6cadcb200df415ffb064d776b6ee6 100644 (file)
@@ -48,3 +48,9 @@ IN: circular.tests
         [ [ push ] [ length 5 < ] bi ] curry circular-while*
     ] keep
 ] unit-test
+
+[ V{ 1 } ] [
+    { 1 2 3 } <circular> V{ } [
+        [ push f ] curry circular-while*
+    ] keep
+] unit-test