mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Fix tests to handle debug_assert
This commit is contained in:
@@ -7,7 +7,9 @@ fn check_raw_str(
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user