update test, fix logic

This commit is contained in:
Aidan 2024-07-27 16:55:13 -04:00
parent db1c230f1f
commit 7fe052322c
2 changed files with 7 additions and 17 deletions

View file

@ -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
"
),
)
);
}