-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add (failing) test for issue #194 - boolean conversions of UInt64 don…
…'t compare equal
- Loading branch information
Showing
43 changed files
with
650 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
test_cases/regression_118/out_unoptimized/Contract.clear.teal
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from algopy import Contract, UInt64 | ||
|
||
|
||
class Issue194(Contract): | ||
# ref: https://github.com/algorandfoundation/puya/issues/194 | ||
def approval_program(self) -> bool: | ||
assert bool(UInt64(1)) == bool(UInt64(2)) | ||
two = UInt64(2) | ||
match bool(two): | ||
case True: | ||
return True | ||
case _: | ||
return False | ||
|
||
def clear_state_program(self) -> bool: | ||
return True |
Oops, something went wrong.