aboutsummaryrefslogtreecommitdiff
path: root/test/test_regset.c
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-03-01 18:24:21 -0800
committerAnthony Sottile <asottile@umich.edu>2020-03-01 18:24:21 -0800
commit08461d8530d008221c3e6593366cfa6f36d41fb8 (patch)
tree6c60a603dc3382ecb4bc264a4d67872d0ac32a24 /test/test_regset.c
parent1c1d2f6870d7f0e97e4578e790523bcc188982f1 (diff)
downloadoniguruma-08461d8530d008221c3e6593366cfa6f36d41fb8.zip
oniguruma-08461d8530d008221c3e6593366cfa6f36d41fb8.tar.gz
oniguruma-08461d8530d008221c3e6593366cfa6f36d41fb8.tar.bz2
Allow regset search to succeed at end of string
Diffstat (limited to 'test/test_regset.c')
-rw-r--r--test/test_regset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_regset.c b/test/test_regset.c
index 9a93a42..5a32dbc 100644
--- a/test/test_regset.c
+++ b/test/test_regset.c
@@ -382,6 +382,8 @@ static char* p7[] = {
"0+", "1+", "2+", "3+", "4+", "5+", "6+", "7+", "8+", "9+",
};
+static char* p8[] = {".*", "a"};
+
extern int
main(int argc, char* argv[])
{
@@ -405,6 +407,7 @@ main(int argc, char* argv[])
N(p2, " XXXX AAA 1223 012345678bbb");
X2(p2, "0123456789", 9, 10);
X2(p7, "abcde 555 qwert", 6, 9);
+ X2(p8, "", 0, 0);
XX_LEAD = ONIG_REGSET_REGEX_LEAD;