1 USING: grouping tools.test kernel sequences arrays
5 [ { 1 2 3 } 0 group ] must-fail
7 [ { "hell" "o wo" "rld" } ] [ "hello world" 4 group ] unit-test
9 [ { V{ "a" "b" } V{ 0 0 } } ] [
10 V{ "a" "b" } clone 2 <groups>
15 [ { { 1 2 } { 2 3 } } ] [ { 1 2 3 } 2 <sliced-clumps> [ >array ] map ] unit-test
17 [ f ] [ [ { } { } "Hello" ] all-equal? ] unit-test
18 [ f ] [ [ { 2 } { } { } ] all-equal? ] unit-test
19 [ t ] [ [ ] all-equal? ] unit-test
20 [ t ] [ [ 1234 ] all-equal? ] unit-test
21 [ f ] [ [ 1.0 1 1 ] all-equal? ] unit-test
22 [ t ] [ { 1 2 3 4 } [ < ] monotonic? ] unit-test
23 [ f ] [ { 1 2 3 4 } [ > ] monotonic? ] unit-test