Skip to content

Commit

Permalink
add some test cases for negative POSIX bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Jun 15, 2022
1 parent d5d4b60 commit 50cdc3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ extern int main(int argc, char* argv[])
x2("[*[:xdigit:]+]", "-@^+", 3, 4);
n("[[:upper]]", "A");
x2("[[:upper]]", ":", 0, 1);
n("[[:upper:]]", "a");
x2("[[:^upper:]]", "a", 0, 1);
n("[[:lower:]]", "A");
x2("[[:^lower:]]", "A", 0, 1);

// Issue #253
e("[[:::]", ":[", ONIGERR_PREMATURE_END_OF_CHAR_CLASS);
Expand Down

0 comments on commit 50cdc3e

Please sign in to comment.