Skip to content

Commit 0785926

Browse files
v-gbBurntSushi
authored andcommitted
tests: confirm that some counted repetitions are rejected
1 parent 9cc79b1 commit 0785926

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/noparse.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ noparse!(fail_bad_capture_name, "(?P<na-me>)");
2626
noparse!(fail_bad_flag, "(?a)a");
2727
noparse!(fail_too_big, "a{10000000}");
2828
noparse!(fail_counted_no_close, "a{1001");
29+
noparse!(fail_counted_decreasing, "a{2,1}");
30+
noparse!(fail_counted_nonnegative, "a{-1,1}");
2931
noparse!(fail_unfinished_cap, "(?");
3032
noparse!(fail_unfinished_escape, "\\");
3133
noparse!(fail_octal_digit, r"\8");

0 commit comments

Comments
 (0)