Fix bug found in the wild via fuzzing, move fuzzing job to the end

This commit is contained in:
Joshua Warner 2024-12-11 18:39:15 -08:00
parent 146710a129
commit 3f2117403e
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 61 additions and 5 deletions

View file

@ -0,0 +1,49 @@
@0-8 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-1,
],
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: [
Stmt(
@0-1 Num(
"4",
),
),
],
},
@2-8 SpaceBefore(
UnaryOp(
@4-6 SpaceBefore(
RecordAccess(
RecordUpdater(
"z",
),
"t",
),
[
Newline,
],
),
@2-3 Not,
),
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -514,6 +514,7 @@ mod test_snapshots {
pass/not_multiline_string.expr,
pass/not_record_updater.expr,
pass/not_tag.expr,
pass/num_bang_amp_z_dot_t.expr,
pass/number_literal_suffixes.expr,
pass/old_app_header.full,
pass/old_interface_header.header,