mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Add snapshot test
This commit is contained in:
parent
c70ceb4f98
commit
9a76a8d2ce
4 changed files with 32 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
get_name! {} ?? "Bob"
|
|
@ -0,0 +1,29 @@
|
|||
@0-21 SpaceAfter(
|
||||
BinOps(
|
||||
[
|
||||
(
|
||||
@0-12 Apply(
|
||||
@0-9 Var {
|
||||
module_name: "",
|
||||
ident: "get_name!",
|
||||
},
|
||||
[
|
||||
@10-12 Record(
|
||||
[],
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
@13-15 DoubleQuestion,
|
||||
),
|
||||
],
|
||||
@16-21 Str(
|
||||
PlainLine(
|
||||
"Bob",
|
||||
),
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
get_name! {} ?? "Bob"
|
|
@ -399,6 +399,7 @@ mod test_snapshots {
|
|||
pass/double_closure_newlines_binop.expr,
|
||||
pass/double_parens_as_in_backpassing_pat.expr,
|
||||
pass/double_parens_comment_tuple_pat.expr,
|
||||
pass/double_question_binop.expr,
|
||||
pass/double_space_before.expr,
|
||||
pass/effectful_closure_statements.expr,
|
||||
pass/empty_app_header.header,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue