From f9c417f24527d38a61338f3757fd1edb53d7fc5c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 20 Jan 2021 13:33:12 -0500 Subject: Fix tests for diff spans --- tests/t0105-commit.sh | 4 ++-- tests/t0106-diff.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 9e34abd..d5ff96c 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh @@ -29,8 +29,8 @@ test_expect_success 'root commit contains diffstat' ' ' test_expect_success 'root commit contains diff' ' - grep ">diff --git a/file-1 b/file-1<" tmp && - grep "
+1
" tmp + grep ">diff --git a/file-1 b/file-1" tmp && + grep "+1" tmp ' test_done diff --git a/tests/t0106-diff.sh b/tests/t0106-diff.sh index 82b645e..62a0a74 100755 --- a/tests/t0106-diff.sh +++ b/tests/t0106-diff.sh @@ -9,11 +9,11 @@ test_expect_success 'find blob link' 'grep "@@ -0,0 +1 @@" tmp + grep "@@ -0,0 +1 @@" tmp ' test_expect_success 'find added line' ' - grep "
+5
" tmp + grep "+5" tmp ' test_done -- cgit 1.4.1-21-gabe81