cleaner unit-tests
parent
35b7b74b97
commit
75c32bde5a
|
@ -13,8 +13,8 @@ IN: splitting.tests
|
|||
|
||||
[ "hello world" "." ] [ "hello world ." " " split1-last-slice [ >string ] bi@ ] unit-test
|
||||
[ "hello-+world" "." ] [ "hello-+world-+." "-+" split1-last-slice [ >string ] bi@ ] unit-test
|
||||
[ "goodbye" f ] [ "goodbye" " " split1-last-slice [ dup [ >string ] when ] bi@ ] unit-test
|
||||
[ "" "" ] [ "great" "great" split1-last-slice [ >string ] bi@ ] unit-test
|
||||
[ "goodbye" f ] [ "goodbye" " " split1-last-slice [ >string ] dip ] unit-test
|
||||
[ "" f ] [ "great" "great" split1-last-slice [ >string ] dip ] unit-test
|
||||
|
||||
[ "and end" t ] [ "Beginning and end" "Beginning " ?head ] unit-test
|
||||
[ "Beginning and end" f ] [ "Beginning and end" "Beginning x" ?head ] unit-test
|
||||
|
|
Loading…
Reference in New Issue