diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a508f6ad..4ed9c236 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -29,8 +29,8 @@ if(NOT MSVC) # EUC add_executable(testc testc.c) target_link_libraries(testc onig) - if (CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") - target_compile_options(testc PRIVATE -Wall -Wno-invalid-source-encoding) + if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") + target_compile_options(testc PRIVATE -Wall -Wno-invalid-source-encoding) endif() endif(NOT MSVC) diff --git a/test/test_back.c b/test/test_back.c index 1bf58488..b70e112f 100644 --- a/test/test_back.c +++ b/test/test_back.c @@ -1444,8 +1444,9 @@ extern int main(int argc, char *argv[]) { x2("(?i)A\u2126=", "a\xcf\x89=", 0, 4); x2("(?i:ss)=1234567890", "\xc5\xbf\xc5\xbf=1234567890", 0, 15); - n("a(b|)+d", "abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcd"); /* https://www.haijin-boys.com/discussions/5079 - */ + n("a(b|)+d", + "abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcd"); /* https://www.haijin-boys.com/discussions/5079 + */ n(" \xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */ /* can't use \xfc00.. because compiler error: hex escape sequence out of range */ diff --git a/test/test_utf8.c b/test/test_utf8.c index 7fb15a78..e4123f8a 100644 --- a/test/test_utf8.c +++ b/test/test_utf8.c @@ -1751,8 +1751,9 @@ extern int main(int argc, char *argv[]) { x2("\\A.*\\s", "\n", 0, 1); // \s x2("\\A.{0,99}\\s", "\n", 0, 1); - n("a(b|)+d", "abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcd"); /* https://www.haijin-boys.com/discussions/5079 - */ + n("a(b|)+d", + "abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcd"); /* https://www.haijin-boys.com/discussions/5079 + */ n(" \xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */ /* can't use \xfc00.. because compiler error: hex escape sequence out of range */