Fixing tests

db4
Slava Pestov 2008-06-13 15:35:40 -05:00
parent ec79700acc
commit 01c3a185b8
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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