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