Skip to content

Commit

Permalink
Add regression test for #84.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed May 11, 2015
1 parent 7ffd92e commit 6f2b8b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions regex_syntax/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,15 @@ mod tests {
});
}

#[test]
fn error_repeat_beginning_counted() {
assert_eq!(perr("{5}"), Error {
pos: 0,
surround: "{5}".into(),
kind: ErrorKind::RepeaterExpectsExpr,
});
}

#[test]
fn error_repeat_illegal_exprs_simple() {
assert_eq!(perr("a**"), Error {
Expand Down

0 comments on commit 6f2b8b9

Please sign in to comment.