From: K.Kosako Date: Sat, 15 Jul 2017 08:44:19 +0000 (+0900) Subject: fix test case strings X-Git-Tag: v6.5.0^2~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb9476f89ade67b4031b347da79c603c353907ac;p=onig fix test case strings --- diff --git a/test/testu.c b/test/testu.c index 2eabc0e..6ff3a10 100644 --- a/test/testu.c +++ b/test/testu.c @@ -905,15 +905,15 @@ extern int main(int argc, char* argv[]) x2("\000^\000\\\000p\000{\000K\000a\000t\000a\000k\000a\000n\000a\000}\000$\000\000", "\060\277\000\000", 0, 2); x2("\000\\\000o\000{\0001\0000\0001\000}\000\000", "\000A\000\000", 0, 2); x2("\000\\\000o\000{\0001\0001\0000\0007\0002\0001\000}\000\000", "\221\321\000\000", 0, 2); - x2("\000\\\000R", "\000\015\000\012", 0, 4); // \R: general newline - x2("\000\\\000R", "\000\012", 0, 2); - x2("\000\\\000R", "\000\015", 0, 2); - x2("\000\\\000R", "\000\013", 0, 2); - n("\000\\\000R\000\012", "\000\015\000\012"); - x2("\000\\\000R", "\x00\x85", 0, 2); - x2("\000\\\000R", "\x20\x28", 0, 2); - x2("\000\\\000R", "\x20\x29", 0, 2); - n("\000\\\000R", "\x20\x2a"); + x2("\000\\\000R\000\000", "\000\015\000\012\000\000", 0, 4); // \R: general newline + x2("\000\\\000R\000\000", "\000\012\000\000", 0, 2); + x2("\000\\\000R\000\000", "\000\015\000\000", 0, 2); + x2("\000\\\000R\000\000", "\000\013\000\000", 0, 2); + n("\000\\\000R\000\012\000\000", "\000\015\000\012\000\000"); + x2("\000\\\000R\000\000", "\x00\x85\000\000", 0, 2); + x2("\000\\\000R\000\000", "\x20\x28\000\000", 0, 2); + x2("\000\\\000R\000\000", "\x20\x29\000\000", 0, 2); + n("\000\\\000R\000\000", "\x20\x2a\000\000"); fprintf(stdout, "\nRESULT SUCC: %d, FAIL: %d, ERROR: %d (by Oniguruma %s)\n",