Skip to content

Commit 91b5494

Browse files
sunshinecogitster
authored andcommitted
t8001/t8002: blame: add tests of multiple -L options
Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 58dbfa2 commit 91b5494

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

t/annotate-tests.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,38 @@ test_expect_success 'blame -L ,Y (Y > nlines)' '
271271
test_must_fail $PROG -L,12345 file
272272
'
273273

274+
test_expect_success 'blame -L multiple (disjoint)' '
275+
check_count -L2,3 -L6,7 A 1 B1 1 B2 1 "A U Thor" 1
276+
'
277+
278+
test_expect_success 'blame -L multiple (disjoint: unordered)' '
279+
check_count -L6,7 -L2,3 A 1 B1 1 B2 1 "A U Thor" 1
280+
'
281+
282+
test_expect_success 'blame -L multiple (adjacent)' '
283+
check_count -L2,3 -L4,5 A 1 B 1 B2 1 D 1
284+
'
285+
286+
test_expect_success 'blame -L multiple (adjacent: unordered)' '
287+
check_count -L4,5 -L2,3 A 1 B 1 B2 1 D 1
288+
'
289+
290+
test_expect_success 'blame -L multiple (overlapping)' '
291+
check_count -L2,4 -L3,5 A 1 B 1 B2 1 D 1
292+
'
293+
294+
test_expect_success 'blame -L multiple (overlapping: unordered)' '
295+
check_count -L3,5 -L2,4 A 1 B 1 B2 1 D 1
296+
'
297+
298+
test_expect_success 'blame -L multiple (superset/subset)' '
299+
check_count -L2,8 -L3,5 A 1 B 1 B1 1 B2 1 C 1 D 1 "A U Thor" 1
300+
'
301+
302+
test_expect_success 'blame -L multiple (superset/subset: unordered)' '
303+
check_count -L3,5 -L2,8 A 1 B 1 B1 1 B2 1 C 1 D 1 "A U Thor" 1
304+
'
305+
274306
test_expect_success 'setup -L :regex' '
275307
tr Q "\\t" >hello.c <<-\EOF &&
276308
int main(int argc, const char *argv[])

0 commit comments

Comments
 (0)