Added backslash to the quoted string test
This commit is contained in:
parent
a6e48aee6a
commit
989bc6ed2a
@ -614,10 +614,10 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_temp_string() {
|
||||
fn test_quoted_string() {
|
||||
assert_eq!(
|
||||
quoted_string(r#""foo\"bar""#),
|
||||
Ok(("", r#"foo"bar"#.to_owned()))
|
||||
quoted_string(r#""foo\"bar\\baz""#),
|
||||
Ok(("", r#"foo"bar\baz"#.to_owned()))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user