Skip to content

Commit

Permalink
chore: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Sep 23, 2024
1 parent 5135bd1 commit 585f68c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 38 deletions.
34 changes: 7 additions & 27 deletions src/grammar/__snapshots__/grammar.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -616,37 +616,17 @@ Line 1, col 7:
`;
exports[`grammar should fail items-asm-fun-5 1`] = `
"Syntax error: <unknown>:2:5: Usage of forget is prohibited, no instructions can be removed
Line 2, col 5:
1 | asm fun forgetForget() {
> 2 | forget forget
^~~~~~~~~~~~~
3 | }
"
`;
"<unknown>:3:5: Parse error: expected end of input, "trait", "contract", "message", "struct", "const", "@name", "asm", "fun", or "primitive"
exports[`grammar should fail items-asm-fun-6 1`] = `
"Syntax error: <unknown>:2:5: Usage of (forget) is prohibited, no instructions can be removed
Line 2, col 5:
1 | asm fun forgetWordFromStack() {
> 2 | (forget)
^~~~~~~~
3 | }
"
`;
exports[`grammar should fail items-asm-fun-7 1`] = `
"<unknown>:4:1: Parse error: expected end of input, "trait", "contract", "message", "struct", "const", "@name", "asm", "fun", or "primitive"
Line 4, col 1:
3 | 5 }
> 4 | }
^
5 |
Line 3, col 5:
2 | { INC } : }
> 3 | 5 }
^
4 | }
"
`;
exports[`grammar should fail items-asm-fun-8 1`] = `
exports[`grammar should fail items-asm-fun-6 1`] = `
"Syntax error: <unknown>:2:5: The binary bitstring has more than 128 digits
Line 2, col 5:
1 | asm fun giganticBinary() {
Expand Down
5 changes: 3 additions & 2 deletions src/grammar/test-failed/items-asm-fun-5.tact
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
asm fun forgetForget() {
forget forget
asm fun shadowingAttempt() {
{ INC } : }
5 }
}
4 changes: 2 additions & 2 deletions src/grammar/test-failed/items-asm-fun-6.tact
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
asm fun forgetWordFromStack() {
(forget)
asm fun giganticBinary() {
b{000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110}
}
4 changes: 0 additions & 4 deletions src/grammar/test-failed/items-asm-fun-7.tact

This file was deleted.

3 changes: 0 additions & 3 deletions src/grammar/test-failed/items-asm-fun-8.tact

This file was deleted.

0 comments on commit 585f68c

Please sign in to comment.