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