Skip to content

Commit 6f2b8b9

Browse files
committed
Add regression test for #84.
1 parent 7ffd92e commit 6f2b8b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

regex_syntax/src/parser.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,15 @@ mod tests {
14291429
});
14301430
}
14311431

1432+
#[test]
1433+
fn error_repeat_beginning_counted() {
1434+
assert_eq!(perr("{5}"), Error {
1435+
pos: 0,
1436+
surround: "{5}".into(),
1437+
kind: ErrorKind::RepeaterExpectsExpr,
1438+
});
1439+
}
1440+
14321441
#[test]
14331442
fn error_repeat_illegal_exprs_simple() {
14341443
assert_eq!(perr("a**"), Error {

0 commit comments

Comments
 (0)