summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2013-10-09 21:36:11 -0700
committerJim Meyering <meyering@fb.com>2013-10-09 21:38:10 -0700
commit5e823a2781a586de56876b572493aa26212b18db (patch)
tree55414c9d0fd8d1ffba3ed699e80be817e258a54b
parent198abd506b32396a02ec7e2c23612efd96cfacef (diff)
downloadgrep-5e823a2781a586de56876b572493aa26212b18db.tar.gz
tests: add a test for better coverage of some tricky code
* tests/spencer1.tests: Add a non-range bracket expression representing the same regexp, to cover the alternate code path, the one that does not require a regcomp/exec call to interpret the regexp.
-rw-r--r--tests/spencer1.tests1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spencer1.tests b/tests/spencer1.tests
index 855265f9..36c0b9ec 100644
--- a/tests/spencer1.tests
+++ b/tests/spencer1.tests
@@ -128,6 +128,7 @@
0@abcd@abcd
0@a(bc)d@abcd
0@a[-]?c@ac
+0@a[]?c@ac
0@(....).*\1@beriberi
0@(^|\B)a@abc
0@(^|\B)a@xyzabc