resolved issue 6188 and added some tests

This commit is contained in:
ptaszor3 2023-12-09 20:10:30 +01:00
parent 5652d4ec18
commit 6a6d5cebc0
No known key found for this signature in database
GPG key ID: 083F32091F5D7CEE
6 changed files with 41 additions and 7 deletions

View file

@ -0,0 +1,7 @@
dbg
(
5,
666,
)
4

View file

@ -0,0 +1,26 @@
Dbg(
@4-16 Tuple(
[
@5-6 Num(
"5",
),
@12-15 SpaceBefore(
Num(
"666",
),
[
Newline,
],
),
],
),
@18-19 SpaceBefore(
Num(
"4",
),
[
Newline,
Newline,
],
),
)

View file

@ -0,0 +1,4 @@
dbg (5,
666)
4

View file

@ -246,8 +246,8 @@ mod test_snapshots {
fail/when_outdented_branch.expr,
fail/when_over_indented_int.expr,
fail/when_over_indented_underscore.expr,
fail/wild_case_arrow.expr,
fail/where_type_variable.expr,
fail/wild_case_arrow.expr,
malformed/bad_opaque_ref.expr,
malformed/malformed_ident_due_to_underscore.expr,
malformed/malformed_pattern_field_access.expr, // See https://github.com/roc-lang/roc/issues/399
@ -296,6 +296,7 @@ mod test_snapshots {
pass/control_characters_in_scalar.expr,
pass/crash.expr,
pass/dbg.expr,
pass/dbg_multiline.expr,
pass/def_without_newline.expr,
pass/destructure_tag_assignment.expr,
pass/empty_app_header.header,
@ -489,9 +490,9 @@ mod test_snapshots {
pass/where_clause_multiple_has_across_newlines.expr,
pass/where_clause_non_function.expr,
pass/where_clause_on_newline.expr,
pass/where_ident.expr,
pass/zero_float.expr,
pass/zero_int.expr,
pass/where_ident.expr,
// END SNAPSHOTS (for automatic test detection via `env ROC_SNAPSHOT_TEST_OVERWRITE=1 cargo test`)
}