From b56c635d64612975a2784fdc1424c41ec02f7272 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 22 Nov 2015 22:02:15 +0200 Subject: [PATCH] tests/int_big_xor: Test that xor result is normalized. And thus can be successfully used in comparisons, etc. --- tests/basics/int_big_xor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/basics/int_big_xor.py b/tests/basics/int_big_xor.py index f755dc8117..2dc260daab 100644 --- a/tests/basics/int_big_xor.py +++ b/tests/basics/int_big_xor.py @@ -5,3 +5,4 @@ print((1 << 80) ^ 0) a = 0xfffffffffffffffffffffffffffff print(a ^ (1 << 100)) print(a ^ (1 << 200)) +print(a ^ a == 0)