summaryrefslogtreecommitdiff
path: root/test/test_options.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-11-20 20:27:13 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-11-20 20:27:13 +0100
commitacb44b8740ce860a4905a47f84520f132c6f76ac (patch)
tree4cc2df0d5849dc8ec395282157528a35e2b1829c /test/test_options.c
parentc9281d179754ffffe24ba9a718d2c4f2e1b4bd5e (diff)
parente81090b75cd330ee5201f56e40d9424a1fc31a6a (diff)
Merge branch 'feature/upstream' into develop
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);
}