mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
update tests for new Expr::If struct
This commit is contained in:
parent
819db7fb44
commit
139f6ae82c
7 changed files with 45 additions and 36 deletions
|
@ -1,6 +1,6 @@
|
|||
SpaceAfter(
|
||||
If(
|
||||
[
|
||||
If {
|
||||
if_thens: [
|
||||
(
|
||||
@3-6 Var {
|
||||
module_name: "",
|
||||
|
@ -60,7 +60,7 @@ SpaceAfter(
|
|||
),
|
||||
),
|
||||
],
|
||||
@49-50 SpaceBefore(
|
||||
final_else: @49-50 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "c",
|
||||
|
@ -71,7 +71,8 @@ SpaceAfter(
|
|||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
indented_else: false,
|
||||
},
|
||||
[
|
||||
LineComment(
|
||||
" 4",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SpaceAfter(
|
||||
If(
|
||||
[
|
||||
If {
|
||||
if_thens: [
|
||||
(
|
||||
@3-5 Var {
|
||||
module_name: "",
|
||||
|
@ -40,7 +40,7 @@ SpaceAfter(
|
|||
),
|
||||
),
|
||||
],
|
||||
@42-43 SpaceBefore(
|
||||
final_else: @42-43 SpaceBefore(
|
||||
Num(
|
||||
"3",
|
||||
),
|
||||
|
@ -48,7 +48,8 @@ SpaceAfter(
|
|||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
indented_else: false,
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
|
|
|
@ -8,8 +8,8 @@ SpaceAfter(
|
|||
@2-3 Star,
|
||||
),
|
||||
],
|
||||
@4-30 If(
|
||||
[
|
||||
@4-30 If {
|
||||
if_thens: [
|
||||
(
|
||||
@7-16 Var {
|
||||
module_name: "Bool",
|
||||
|
@ -20,10 +20,11 @@ SpaceAfter(
|
|||
),
|
||||
),
|
||||
],
|
||||
@29-30 Num(
|
||||
final_else: @29-30 Num(
|
||||
"1",
|
||||
),
|
||||
),
|
||||
indented_else: false,
|
||||
},
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
|
|
|
@ -3,8 +3,8 @@ Record(
|
|||
@1-31 RequiredValue(
|
||||
@1-2 "x",
|
||||
[],
|
||||
@5-31 If(
|
||||
[
|
||||
@5-31 If {
|
||||
if_thens: [
|
||||
(
|
||||
@8-17 Var {
|
||||
module_name: "Bool",
|
||||
|
@ -15,10 +15,11 @@ Record(
|
|||
),
|
||||
),
|
||||
],
|
||||
@30-31 Num(
|
||||
final_else: @30-31 Num(
|
||||
"2",
|
||||
),
|
||||
),
|
||||
indented_else: false,
|
||||
},
|
||||
),
|
||||
@33-37 RequiredValue(
|
||||
@33-34 "y",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue