mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 16:51:53 +03:00
Reproduce formatter bug
This commit is contained in:
parent
e4d09e9e59
commit
3e2f581db4
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user