Fix unicode char parsing in comments.

This commit is contained in:
KtorZ
2023-02-22 17:33:13 +01:00
parent fbf65de1dc
commit 539ed2dea4
2 changed files with 21 additions and 3 deletions

View File

@@ -547,3 +547,16 @@ fn test_string_literal() {
assert_fmt(src, src);
}
#[test]
fn test_unicode() {
let src = indoc! {r#"
/// ∞ ★ ♩ ♫ ✓
fn foo() {
trace @"∀💩"
Void
}
"#};
assert_fmt(src, src);
}