]> gitweb.factorcode.org Git - factor.git/commitdiff
fixup: forgot the tests
authorJon Harper <jon.harper87@gmail.com>
Sun, 28 Oct 2012 14:38:58 +0000 (15:38 +0100)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 28 Oct 2012 20:34:30 +0000 (13:34 -0700)
basis/grouping/grouping-tests.factor

index 104f9a731111031b59d62244b34414865fbf6cf3..50d72bae2673c7f3f60b6afc79bb3675890825e8 100644 (file)
@@ -12,11 +12,15 @@ IN: grouping.tests
     >array
 ] unit-test
 
-[ 1 ] [ { } 2 <clumps> length ] unit-test
+[ 0 ] [ { } 2 <clumps> length ] unit-test
 [ 1 ] [ { 1 } 2 <clumps> length ] unit-test
 [ 1 ] [ { 1 2 } 2 <clumps> length ] unit-test
 [ 2 ] [ { 1 2 3 } 2 <clumps> length ] unit-test
 
+{ { { 1 } } } [ { 1 } 2 clump ] unit-test
+{ { { 1 2 } } } [ { 1 2 } 2 clump ] unit-test
+{ { { 1 2 } { 2 3 } } } [ { 1 2 3 } 2 clump ] unit-test
+
 [ { } 2 <circular-clumps> length ] must-fail
 [ { 1 } 2 <circular-clumps> length ] must-fail