]> git.ipfire.org Git - thirdparty/git.git/blame - t/t0065-strcmp-offset.sh
commit-reach(repo_get_merge_bases_many_dirty): pass on errors
[thirdparty/git.git] / t / t0065-strcmp-offset.sh
CommitLineData
a6db3fbb
JH
1#!/bin/sh
2
3test_description='Test strcmp_offset functionality'
4
fdc8f79f 5TEST_PASSES_SANITIZE_LEAK=true
a6db3fbb
JH
6. ./test-lib.sh
7
8while read s1 s2 expect
9do
10 test_expect_success "strcmp_offset($s1, $s2)" '
11 echo "$expect" >expect &&
1a5f3d70 12 test-tool strcmp-offset "$s1" "$s2" >actual &&
a6db3fbb
JH
13 test_cmp expect actual
14 '
15done <<-EOF
16abc abc 0 3
17abc def -1 0
18abc abz -1 2
19abc abcdef -1 3
20EOF
21
22test_done