From 989bc6ed2aaadec29e1ef9cd5e68bb61fd4c7192 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 6 Apr 2020 21:26:08 -0400 Subject: [PATCH] Added backslash to the quoted string test --- src/parser/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/parser.rs b/src/parser/parser.rs index 5121aa9..49ffe64 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -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())) ); } }