roc/crates/compiler/test_syntax/tests/snapshots/pass/expect.expr.result-ast
Joshua Warner b4fa7294c7
Extend test_syntax to check that canonicalization doesn't panic on the input
Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
2024-12-06 17:13:10 -08:00

50 lines
1.2 KiB
Text

@0-16 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-13,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
space_after: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
],
spaces: [],
type_defs: [],
value_defs: [
Expect {
condition: @7-13 BinOps(
[
(
@7-8 Num(
"1",
),
@9-11 Equals,
),
],
@12-13 Num(
"1",
),
),
preceding_comment: …,
},
],
},
@15-16 SpaceBefore(
Num(
"4",
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
)