From d01c1c1b2e5f042e3cc962cc0acecf477c72458a Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Sat, 5 Feb 2022 12:54:46 +0000 Subject: [PATCH] Checked against serde_json --- tests/it/io/json/write.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/it/io/json/write.rs b/tests/it/io/json/write.rs index dc10fbff724..14f5327e9d3 100644 --- a/tests/it/io/json/write.rs +++ b/tests/it/io/json/write.rs @@ -303,6 +303,7 @@ fn write_escaped_utf8() -> Result<()> { String::from_utf8(buf).unwrap().as_bytes(), b"{\"c1\":\"a\\na\"}\n{\"c1\":null}\n" ); + serde_json::from_slice::(b"{\"c1\":\"a\\na\"}").unwrap(); Ok(()) } @@ -322,5 +323,6 @@ fn write_quotation_marks_in_utf8() -> Result<()> { String::from_utf8(buf).unwrap().as_bytes(), b"{\"c1\":\"a\\\"a\"}\n{\"c1\":null}\n" ); + serde_json::from_slice::(b"{\"c1\":\"a\\\"a\"}").unwrap(); Ok(()) }