Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed May 29, 2024
1 parent 141a22b commit eb0e123
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/jiter/tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1597,9 +1597,9 @@ fn jiter_partial_string() {

#[test]
fn test_unicode_roundtrip() {
// '"中文"' or b'"\\u4e2d\\u6587"'
let json_bytes: Vec<u8> = vec![34, 92, 117, 52, 101, 50, 100, 92, 117, 54, 53, 56, 55, 34];
let value = JsonValue::parse(&json_bytes, false).unwrap();
// '"中文"'
let json_bytes = b"\"\\u4e2d\\u6587\"";
let value = JsonValue::parse(json_bytes, false).unwrap();
let cow = match value {
JsonValue::Str(s) => s,
_ => panic!("expected string"),
Expand Down

0 comments on commit eb0e123

Please sign in to comment.