Skip to content

Commit

Permalink
Fix tests to handle debug_assert
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed Mar 31, 2020
1 parent 20e2190 commit 55a5eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_lexer/src/tests.rs
Expand Up @@ -7,7 +7,9 @@ mod tests {
expected: UnvalidatedRawStr,
validated: Result<ValidatedRawStr, LexRawStrError>,
) {
let s = &format!("r{}", s);
let mut cursor = Cursor::new(s);
cursor.bump();
let tok = cursor.raw_double_quoted_string(0);
assert_eq!(tok, expected);
assert_eq!(tok.validate(), validated);
Expand Down

0 comments on commit 55a5eea

Please sign in to comment.