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

Commit

Permalink
Add test of Unicode larger than U+FFFF
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 5, 2023
1 parent eac69a2 commit b6f6957
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ fn test_string_escapes() {
"\x1F\uFEFF"
"#};
test_serde(&"\u{1f}\u{feff}".to_owned(), yaml);

let yaml = indoc! {r#"
"\U0001F389"
"#};
test_serde(&"\u{1f389}".to_owned(), yaml);
}

#[test]
Expand Down

0 comments on commit b6f6957

Please sign in to comment.