mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
update test, fix logic
This commit is contained in:
parent
db1c230f1f
commit
7fe052322c
2 changed files with 7 additions and 17 deletions
|
@ -6231,24 +6231,17 @@ mod test_fmt {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn issue_6896() {
|
||||
expr_formats_to(
|
||||
fn preserve_annotated_body_comments() {
|
||||
expr_formats_same(
|
||||
indoc!(
|
||||
r"
|
||||
x : i32
|
||||
# comment
|
||||
# comment 2
|
||||
x = 1
|
||||
x
|
||||
"
|
||||
),
|
||||
indoc!(
|
||||
r"
|
||||
x : i32
|
||||
# comment
|
||||
x = 1
|
||||
x
|
||||
"
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue