From: Mark Lodato Date: Mon, 26 Mar 2012 02:41:43 GMT Subject: [PATCH 2/4] add tests for grep --heading with context Message-ID: <1332729705-9283-3-git-send-email-lodatom@gmail.com> In-Reply-To: <1332729705-9283-1-git-send-email-lodatom@gmail.com> It is easy to make a mistake in the logic that conditionally prints out hunk separators in the various combinations of --heading, --break, and --context. Signed-off-by: Mark Lodato --- t/t7810-grep.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index d9ad633..58c0821 100755 --- a/t/t7810-grep.sh +++ b/t/t7810-grep.sh @@ -901,6 +901,43 @@ test_expect_success 'mimic ack-grep --group' ' ' cat >expected <actual && + test_cmp expected actual +' + +cat >expected <actual && + test_cmp expected actual +' + +cat >expected <