Fix tests to handle debug_assert
This commit is contained in:
parent
20e21902bb
commit
55a5eea763
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue