]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0080-vcs-svn.sh
Add treap implementation
[thirdparty/git.git] / t / t0080-vcs-svn.sh
index 3f29496bf8c047eddfab3925da640eb34b75b30c..ce02c58e3eac50df61b61e143d94a051564b98bf 100755 (executable)
@@ -76,4 +76,26 @@ test_expect_success 'obj pool: high-water mark' '
        test_cmp expected actual
 '
 
+test_expect_success 'treap sort' '
+       cat <<-\EOF >unsorted &&
+       68
+       12
+       13
+       13
+       68
+       13
+       13
+       21
+       10
+       11
+       12
+       13
+       13
+       EOF
+       sort unsorted >expected &&
+
+       test-treap <unsorted >actual &&
+       test_cmp expected actual
+'
+
 test_done