From ffb639bf965a667946c84883c19a58fdef787f2d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Nov 2017 01:12:05 +0800 Subject: [PATCH] Regex: add unit test for #1693 --- src/regex_impl.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 2a992df9..729519a8 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -1388,6 +1388,11 @@ auto test_regex = UnitTest{[]{ kak_assert(vm.exec("abcde")); } + { + TestVM<> vm{R"((?i)[a-c]+)"}; + kak_assert(vm.exec("bCa")); + } + { TestVM<> vm{R"(д)"}; kak_assert(vm.exec("д", RegexExecFlags::Search));