mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Add parser tests for dbg
This commit is contained in:
parent
49f8768271
commit
73a591743b
4 changed files with 44 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
dbg
|
||||
1 == 1
|
||||
|
||||
4
|
|
@ -0,0 +1,36 @@
|
|||
BinOps(
|
||||
[
|
||||
(
|
||||
@0-5 Apply(
|
||||
@0-3 Var {
|
||||
module_name: "",
|
||||
ident: "dbg",
|
||||
},
|
||||
[
|
||||
@4-5 Num(
|
||||
"1",
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
@6-8 Equals,
|
||||
),
|
||||
],
|
||||
@9-13 Apply(
|
||||
@9-10 Num(
|
||||
"1",
|
||||
),
|
||||
[
|
||||
@12-13 SpaceBefore(
|
||||
Num(
|
||||
"4",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
)
|
3
crates/compiler/parse/tests/snapshots/pass/dbg.expr.roc
Normal file
3
crates/compiler/parse/tests/snapshots/pass/dbg.expr.roc
Normal file
|
@ -0,0 +1,3 @@
|
|||
dbg 1 == 1
|
||||
|
||||
4
|
|
@ -168,6 +168,7 @@ mod test_parse {
|
|||
pass/equals.expr,
|
||||
pass/expect_fx.module,
|
||||
pass/multiline_tuple_with_comments.expr,
|
||||
pass/dbg.expr,
|
||||
pass/expect.expr,
|
||||
pass/float_with_underscores.expr,
|
||||
pass/full_app_header_trailing_commas.header,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue