transport-helper: drop read/write errno checks
[git.git] / t / t0009-prio-queue.sh
blob3941ad25286562a57faa63d4ba37604d1fd708bd
1 #!/bin/sh
3 test_description='basic tests for priority queue implementation'
4 . ./test-lib.sh
6 cat >expect <<'EOF'
18 EOF
19 test_expect_success 'basic ordering' '
20 test-tool prio-queue 2 6 3 10 9 5 7 4 5 8 1 dump >actual &&
21 test_cmp expect actual
24 cat >expect <<'EOF'
31 EOF
32 test_expect_success 'mixed put and get' '
33 test-tool prio-queue 6 2 4 get 5 3 get get 1 dump >actual &&
34 test_cmp expect actual
37 cat >expect <<'EOF'
40 NULL
43 NULL
44 EOF
45 test_expect_success 'notice empty queue' '
46 test-tool prio-queue 1 2 get get get 1 2 get get get >actual &&
47 test_cmp expect actual
50 cat >expect <<'EOF'
58 EOF
59 test_expect_success 'stack order' '
60 test-tool prio-queue stack 8 1 5 4 6 2 3 dump >actual &&
61 test_cmp expect actual
64 test_done