mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
add test for blank chars in multiline string
This commit is contained in:
parent
de6a31263a
commit
ade416dbb4
1 changed files with 24 additions and 0 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue