Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Sep 26, 2023
1 parent d007a77 commit 0f36cca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions test/test_back.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 3 additions & 2 deletions test/test_utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 0f36cca

Please sign in to comment.