summaryrefslogtreecommitdiff
path: root/test/test_options.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-12-19 08:12:44 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-12-19 08:12:44 +0100
commit7547c5a1405dff1aac1ab054a24907b3ae724c12 (patch)
tree4ca475fcd4511e8cd245ce31349f4efb56089aaf /test/test_options.c
parent9d10df3f441724d605cd8729c8e8d3ba1ad816f4 (diff)
parente87df9b5e9eea77d2155767952c996f91b5eebfc (diff)
Merge branch 'release/debian/6.9.9-1'HEADdebian/6.9.9-1master
Diffstat (limited to 'test/test_options.c')
-rw-r--r--test/test_options.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_options.c b/test/test_options.c
index 7010f0f..ce92ee1 100644
--- a/test/test_options.c
+++ b/test/test_options.c
@@ -197,6 +197,11 @@ extern int main(int argc, char* argv[])
n(ONIG_OPTION_NOT_END_STRING, "ab\\Z", "ab");
n(ONIG_OPTION_NOT_END_STRING, "ab\\Z", "ab\n");
+ x2(ONIG_OPTION_NONE, "a|abc", "abc", 0, 1);
+ x2(ONIG_OPTION_NONE, "(a|abc)\\Z", "abc", 0, 3);
+ x2(ONIG_OPTION_MATCH_WHOLE_STRING, "a|abc", "abc", 0, 3);
+ x2(ONIG_OPTION_MATCH_WHOLE_STRING, "a|abc", "a", 0, 1);
+
x2(ONIG_OPTION_WORD_IS_ASCII, "\\w", "@g", 1, 2);
n(ONIG_OPTION_WORD_IS_ASCII, "\\w", "あ");
x2(ONIG_OPTION_NONE, "\\d", "1", 0, 3);
@@ -219,6 +224,5 @@ extern int main(int argc, char* argv[])
onig_region_free(region, 1);
onig_end();
-
return ((nfail == 0 && nerror == 0) ? 0 : -1);
}