factor/extra/sorting/bubble/bubble-tests.factor

6 lines
220 B
Factor

USING: kernel sorting.bubble tools.test ;
{ { } } [ { } dup natural-bubble-sort! ] unit-test
{ { 1 } } [ { 1 } dup natural-bubble-sort! ] unit-test
{ { 1 2 3 4 5 } } [ { 1 4 2 5 3 } dup natural-bubble-sort! ] unit-test