1 USING: kernel sequences tools.test ;
4 { { } } [ { } heapsort ] unit-test
5 { { 1 } } [ { 1 } heapsort ] unit-test
6 { { 1 2 3 4 5 } } [ { 1 4 2 5 3 } heapsort ] unit-test
9 { "fred" "dino" "wilma" "betty" "barney" "pebbles" "bamm-bamm" }
11 { "fred" "wilma" "pebbles" "dino" "barney" "betty" "bamm-bamm" }
12 [ length ] heapsort-with