add test for blank chars in multiline string

This commit is contained in:
Aidan 2024-08-17 10:28:15 -04:00
parent de6a31263a
commit ade416dbb4
No known key found for this signature in database

View file

@ -6379,6 +6379,30 @@ mod test_fmt {
);
}
#[test]
fn make_blank_chars_explicit_in_multiline_string() {
expr_formats_to(
indoc!(
"
x =
\"\"\"
foo:\u{200B} $(bar).
\"\"\"
x
"
),
indoc!(
r#"
x =
"""
foo:\u(200b) $(bar).
"""
x
"#
),
);
}
#[test]
fn preserve_multiline_string_trailing_whitespace() {
expr_formats_same(indoc!(