Skip to content

Commit 31a8189

Browse files
rscharfegitster
authored andcommitted
t4209: use helper functions to test --author
Also add tests for case sensitive and non-matching cases. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 65a3402 commit 31a8189

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

t/t4209-log-pickaxe.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,10 @@ test_log expect_nomatch --grep InItial
6060
test_log_icase expect_initial --grep InItial
6161
test_log_icase expect_nomatch --grep initail
6262

63-
test_expect_success 'log --author --regexp-ignore-case' '
64-
git log --regexp-ignore-case --author=person --format=%H >actual &&
65-
test_cmp expect_second actual
66-
'
67-
68-
test_expect_success 'log --author -i' '
69-
git log -i --author=person --format=%H >actual &&
70-
test_cmp expect_second actual
71-
'
63+
test_log expect_second --author Person
64+
test_log expect_nomatch --author person
65+
test_log_icase expect_second --author person
66+
test_log_icase expect_nomatch --author spreon
7267

7368
test_log expect_nomatch -G picked
7469
test_log expect_second -G Picked

0 commit comments

Comments
 (0)