Skip to content

Commit

Permalink
feat: Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
byakuren-hijiri committed Mar 31, 2024
1 parent 40813c0 commit 1f783dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types/__snapshots__/resolveDescriptors.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ Line 15, col 3:
"
`;
exports[`resolveDescriptors should fail descriptors for case-25 1`] = `
"<unknown>:8:21: Cannot evaluate constant expression due to integer overflow
Line 8, col 21:
7 |
> 8 | const a: Int = 1 + (1 >> -1073741824);
^~~~~~~~~~~~~~~~
9 |
"
`;
exports[`resolveDescriptors should resolve descriptors for case-0 1`] = `
{
"BaseTrait": {
Expand Down
8 changes: 8 additions & 0 deletions src/types/test-failed/case-25.tact
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
primitive Int;
primitive Bool;

trait BaseTrait {

}

const a: Int = 1 + (1 >> -1073741824);

0 comments on commit 1f783dc

Please sign in to comment.