From 1dd04fe95769086873dbf40fc91e197414908624 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 8 Feb 2024 05:53:12 -0600 Subject: [PATCH] Grep -Am test (for commit 4277f1801036) --- tests/grep.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/grep.test b/tests/grep.test index 74a598ee..64ca105b 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -242,3 +242,6 @@ testcmd 'middle ^ not special' 'a^' 'a^b\n' '' 'a^b\nb^a\n' testcmd 'middle $ not special' "'\$b'" 'a$b\n' '' 'a$b\nb$a\n' testcmd 'grep -of' '-of input' 'abc\n' 'a.c\n' 'abcdef\n' + +testcmd '-A with -m' '-A1 -m2 match' 'match\n1\nmatch\n2\n' '' \ + 'match\n1\nmatch\n2\nmatch\n3\n' -- 2.39.2