Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparisons with algopy.UInt64 that have been converted to bool fail #194

Closed
achidlow opened this issue Apr 12, 2024 · 0 comments · Fixed by #283
Closed

Comparisons with algopy.UInt64 that have been converted to bool fail #194

achidlow opened this issue Apr 12, 2024 · 0 comments · Fixed by #283
Assignees
Labels
bug Something isn't working

Comments

@achidlow
Copy link
Contributor

The following assertion will fail, when it should pass:

assert bool(algopy.UInt64(1)) == bool(algopy.UInt64(2))

As will this one:

two = algopy.UInt64(2)
match bool(two):
    case True:
        pass
    case _:
        assert False
@achidlow achidlow added the bug Something isn't working label Apr 12, 2024
@achidlow achidlow self-assigned this Apr 12, 2024
achidlow added a commit that referenced this issue Jul 26, 2024
achidlow added a commit that referenced this issue Aug 6, 2024
achidlow added a commit that referenced this issue Aug 6, 2024
achidlow added a commit that referenced this issue Aug 6, 2024
achidlow added a commit that referenced this issue Aug 8, 2024
achidlow added a commit that referenced this issue Aug 8, 2024
achidlow added a commit that referenced this issue Aug 9, 2024
achidlow added a commit that referenced this issue Aug 9, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant