mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-03 06:02:54 +00:00
Reproduce formatter bug
This commit is contained in:
parent
e4d09e9e59
commit
3e2f581db4
1 changed files with 12 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue