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

Unsigned integers no wrap II #2189

Merged
merged 8 commits into from
Jul 19, 2023
Prev Previous commit
Next Next commit
TEST: Remove commented code
  • Loading branch information
Shaikh-Ubaid committed Jul 19, 2023
commit 528ab8cdfbb21263074ec3a2c4118a4dfe64a166
42 changes: 0 additions & 42 deletions integration_tests/cast_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,8 @@ def test_02():
print(w)
assert w == u32(11)

# Disable following tests
# Negative numbers in unsigned should throw errors
# TODO: Add these tests as error reference tests

# def test_03():
# x : u32 = u32(-10)
# print(x)
# assert x == u32(4294967286)

# y: u16 = u16(x)
# print(y)
# assert y == u16(65526)

# z: u64 = u64(y)
# print(z)
# assert z == u64(65526)

# w: u8 = u8(z)
# print(w)
# assert w == u8(246)

# def test_04():
# x : u64 = u64(-11)
# print(x)
# # TODO: We are unable to store the following u64 in AST/R
# # assert x == u64(18446744073709551605)

# y: u8 = u8(x)
# print(y)
# assert y == u8(245)

# z: u16 = u16(y)
# print(z)
# assert z == u16(245)

# w: u32 = u32(z)
# print(w)
# assert w == u32(245)


def main0():
test_01()
test_02()
# test_03()
# test_04()

main0()