repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'dl/test-must-fail-fixes-3'
[git.git]
/
t
/
t0065-strcmp-offset.sh
blob
91fa639c4a74ed69ed69ff7360728b2f1ab08a66
1
#!/bin/sh
2
3
test_description
=
'Test strcmp_offset functionality'
4
5
. .
/
test-lib.sh
6
7
while
read
s1 s2 expect
8
do
9
test_expect_success
"strcmp_offset(
$s1
,
$s2
)"
'
10
echo "
$expect
" >expect &&
11
test-tool strcmp-offset "
$s1
" "
$s2
" >actual &&
12
test_cmp expect actual
13
'
14
done
<<-EOF
15
abc abc 0 3
16
abc def -1 0
17
abc abz -1 2
18
abc abcdef -1 3
19
EOF
20
21
test_done