3 test_description
='check infrastructure for svn importer'
8 test_expect_success
'obj pool: store data' '
9 cat <<-\EOF >expected &&
14 test-obj-pool <<-\EOF >actual &&
20 test_cmp expected actual
23 test_expect_success
'obj pool: NULL is offset ~0' '
24 echo "$uint32_max" >expected &&
25 echo null one | test-obj-pool >actual &&
26 test_cmp expected actual
29 test_expect_success
'obj pool: out-of-bounds access' '
30 cat <<-EOF >expected &&
40 test-obj-pool <<-\EOF >actual &&
52 test_cmp expected actual
55 test_expect_success
'obj pool: high-water mark' '
56 cat <<-\EOF >expected &&
65 test-obj-pool <<-\EOF >actual &&
76 test_cmp expected actual
79 test_expect_success
'string pool' '
80 echo a does not equal b >expected.differ &&
81 echo a equals a >expected.match &&
82 echo equals equals equals >expected.matchmore &&
84 test-string-pool "a,--b" >actual.differ &&
85 test-string-pool "a,a" >actual.match &&
86 test-string-pool "equals-equals" >actual.matchmore &&
87 test_must_fail test-string-pool a,a,a &&
88 test_must_fail test-string-pool a &&
90 test_cmp expected.differ actual.differ &&
91 test_cmp expected.match actual.match &&
92 test_cmp expected.matchmore actual.matchmore
95 test_expect_success
'treap sort' '
96 cat <<-\EOF >unsorted &&
111 sort unsorted >expected &&
113 test-treap <unsorted >actual &&
114 test_cmp expected actual