Reproduce formatter bug

This commit is contained in:
Richard Feldman 2022-07-03 21:58:38 -04:00
parent e4d09e9e59
commit 3e2f581db4
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -3373,6 +3373,18 @@ mod test_fmt {
));
}
#[test]
fn when_with_integer_comments() {
expr_formats_same(indoc!(
r#"
when 0 is
1 # comment
| 2 -> "a"
_ -> "b"
"#
));
}
#[test]
fn nested_when() {
expr_formats_same(indoc!(