Add back working tests

This commit is contained in:
Joshua Warner 2024-07-27 14:49:56 -07:00
parent 4f32f43048
commit ecb8b12167
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD

View file

@ -5442,6 +5442,73 @@ mod test_fmt {
));
}
#[test]
fn backpassing_parens_body() {
expr_formats_same(indoc!(
r"
Task.fromResult
(
b <- binaryOp ctx
if a == b then
-1
else
0
)
"
));
expr_formats_to(
indoc!(
r"
Task.fromResult
(b <- binaryOp ctx
if a == b then
-1
else
0
)
"
),
indoc!(
r"
Task.fromResult
(
b <- binaryOp ctx
if a == b then
-1
else
0
)
"
),
);
expr_formats_to(
indoc!(
r"
Task.fromResult
(b <- binaryOp ctx
if a == b then
-1
else
0)
"
),
indoc!(
r"
Task.fromResult
(
b <- binaryOp ctx
if a == b then
-1
else
0
)
"
),
);
}
#[test]
fn backpassing_body_on_newline() {
expr_formats_same(indoc!(