Skip to content

Commit

Permalink
fix UT: \u0000 is not allowed in some version
Browse files Browse the repository at this point in the history
  • Loading branch information
blahgeek committed Jan 7, 2024
1 parent f1df0b7 commit b98b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bytecode_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn run_one_test(json_str: &str, object_type: bytecode::ObjectType) -> Result<()>
#[test]
fn test_bytecode() {
// unicode test
run_one_test(r#"{"a":"ÀÁÂÃÄÅÆÇÈÉÊËÌ\u0000 abcd \n 你好世界"}"#, bytecode::ObjectType::Plist).unwrap();
run_one_test(r#"{"a":"ÀÁÂÃÄÅÆÇÈÉÊËÌ abcd \n 你好世界"}"#, bytecode::ObjectType::Plist).unwrap();

for object_type in vec![bytecode::ObjectType::Plist,
bytecode::ObjectType::Alist,
Expand Down

0 comments on commit b98b873

Please sign in to comment.