Fixing tests
parent
ec79700acc
commit
01c3a185b8
|
@ -26,7 +26,7 @@ IN: vectors.tests
|
|||
[ V{ 1 2 } ] [ [ 1 2 ] >vector ] unit-test
|
||||
|
||||
[ t ] [
|
||||
100 [ 100 random ] V{ } map-as
|
||||
100 [ 100 random ] V{ } replicate-as
|
||||
dup >array >vector =
|
||||
] unit-test
|
||||
|
||||
|
|
|
@ -80,7 +80,6 @@ IN: sequences.lib.tests
|
|||
[ ] [ { } 0 firstn ] unit-test
|
||||
[ "a" ] [ { "a" } 1 firstn ] unit-test
|
||||
|
||||
[ { { 1 1 } { 1 2 } { 2 0 } } ] [ { { 2 0 } { 1 1 } { 1 2 } } dup [ first ] insertion-sort ] unit-test
|
||||
[ "empty" ] [ { } [ "not empty" ] [ "empty" ] if-seq ] unit-test
|
||||
[ { 1 } "not empty" ] [ { 1 } [ "not empty" ] [ "empty" ] if-seq ] unit-test
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
IN: sorting.insertion
|
||||
USING: sorting.insertion sequences kernel tools.test ;
|
||||
|
||||
[ { { 1 1 } { 1 2 } { 2 0 } } ] [ { { 2 0 } { 1 1 } { 1 2 } } dup [ first ] insertion-sort ] unit-test
|
Loading…
Reference in New Issue