From: K.Kosako Date: Tue, 16 Aug 2016 06:07:14 +0000 (+0900) Subject: add a test case (find longest option) X-Git-Tag: v6.1.0~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f235ed8e39511ee2804d5b2953185eb8a2d679f9;p=onig add a test case (find longest option) --- diff --git a/sample/bug_fix.c b/sample/bug_fix.c index 68deffe..a688201 100644 --- a/sample/bug_fix.c +++ b/sample/bug_fix.c @@ -124,5 +124,8 @@ extern int main(int argc, char* argv[]) exec(ONIG_ENCODING_UTF8, ONIG_OPTION_NONE, "(\2)(\1)", "aa"); /* fail. */ + exec(ONIG_ENCODING_UTF8, ONIG_OPTION_FIND_LONGEST, + "a*", "aa aaa aaaa aaaaa "); /* match 12-17 */ + return 0; }