Added backslash to the quoted string test

This commit is contained in:
Tom Alexander 2020-04-06 21:26:08 -04:00
parent a6e48aee6a
commit 989bc6ed2a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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()))
);
}
}