Commit b56c635d authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/int_big_xor: Test that xor result is normalized.

And thus can be successfully used in comparisons, etc.
parent 3d6240ba
...@@ -5,3 +5,4 @@ print((1 << 80) ^ 0) ...@@ -5,3 +5,4 @@ print((1 << 80) ^ 0)
a = 0xfffffffffffffffffffffffffffff a = 0xfffffffffffffffffffffffffffff
print(a ^ (1 << 100)) print(a ^ (1 << 100))
print(a ^ (1 << 200)) print(a ^ (1 << 200))
print(a ^ a == 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment