From 0982f3b278d280b79307b067bc847e3d48b3fadf Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 10 Jul 2017 16:37:36 +0900 Subject: [PATCH] add test cases for \K --- test/testc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/testc.c b/test/testc.c index 0cb27e6..e669ce0 100644 --- a/test/testc.c +++ b/test/testc.c @@ -611,6 +611,11 @@ extern int main(int argc, char* argv[]) n("\\R", "\xc2\x85"); // because euc-jp is not Unicode x2("\\N", "a", 0, 1); n("\\N", "\n"); + x2("\\K", "a", 0, 0); + x2("a\\K", "a", 1, 1); + x2("a\\Kb", "ab", 1, 2); + x2("(a\\Kb|ac\\Kd)", "acd", 2, 3); + x2("(a\\Kb|\\Kac\\K)*", "acababacab", 9, 10); /* < ifndef IGNORE_EUC_JP > -- 2.40.0