mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Adjust parens around patterns in annotations
This commit is contained in:
parent
b79d387b46
commit
84b3969648
23 changed files with 88 additions and 128 deletions
|
@ -2144,40 +2144,6 @@ mod test_fmt {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn comments_with_newlines_in_records() {
|
||||
expr_formats_to(
|
||||
indoc!(
|
||||
r"
|
||||
{
|
||||
z: 44 #comment 0
|
||||
,
|
||||
y: 41, # comment 1
|
||||
|
||||
# comment 2
|
||||
x: 42
|
||||
|
||||
# comment 3
|
||||
|
||||
# comment 4
|
||||
}"
|
||||
),
|
||||
indoc!(
|
||||
r"
|
||||
{
|
||||
z: 44,
|
||||
# comment 0
|
||||
y: 41,
|
||||
# comment 1
|
||||
# comment 2
|
||||
x: 42,
|
||||
# comment 3
|
||||
# comment 4
|
||||
}"
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn multiple_final_comments_with_comma_in_records() {
|
||||
expr_formats_to(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue