3 test_description
='basic tests for priority queue implementation'
19 test_expect_success
'basic ordering' '
20 test-prio-queue 2 6 3 10 9 5 7 4 5 8 1 dump >actual &&
21 test_cmp expect actual
32 test_expect_success
'mixed put and get' '
33 test-prio-queue 6 2 4 get 5 3 get get 1 dump >actual &&
34 test_cmp expect actual
45 test_expect_success
'notice empty queue' '
46 test-prio-queue 1 2 get get get 1 2 get get get >actual &&
47 test_cmp expect actual