Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Checked against serde_json
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Feb 5, 2022
1 parent 9496bd3 commit d01c1c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/it/io/json/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<serde_json::Value>(b"{\"c1\":\"a\\na\"}").unwrap();
Ok(())
}

Expand All @@ -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::<serde_json::Value>(b"{\"c1\":\"a\\\"a\"}").unwrap();
Ok(())
}

0 comments on commit d01c1c1

Please sign in to comment.