1#!/bin/sh
23
test_description='Test strcmp_offset functionality'
45
. ./test-lib.sh
67
while read s1 s2 expect
8do
9test_expect_success "strcmp_offset($s1, $s2)" '
10echo "$expect" >expect &&
11test-strcmp-offset "$s1" "$s2" >actual &&
12test_cmp expect actual
13'
14done <<-EOF
15abc abc 0 3
16abc def -1 0
17abc abz -1 2
18abc abcdef -1 3
19EOF
2021
test_done