]> granicus.if.org Git - onig/commitdiff
add test cases for \y and \Y
authorK.Kosako <kosako@sofnec.co.jp>
Mon, 21 Aug 2017 04:52:14 +0000 (13:52 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Mon, 21 Aug 2017 04:52:14 +0000 (13:52 +0900)
test/test_utf8.c

index 19844cd49dfe06e909b661ccaae4595fec63e327..73f2617d9bd2b8cff67188457e85b593b4db5aaa 100644 (file)
@@ -1005,6 +1005,10 @@ extern int main(int argc, char* argv[])
 
   // extended grapheme cluster
 
+  // CR + LF
+  n(".\\y\\O", "\x0d\x0a");
+  x2(".\\Y\\O", "\x0d\x0a", 0, 2);
+
   // LATIN SMALL LETTER G, COMBINING DIAERESIS
   n("^.\\y.$", "\x67\xCC\x88");
   x2(".\\Y.", "\x67\xCC\x88", 0, 3);