summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2024-04-12 17:50:14 -0400
committerRob Austein <sra@hactrn.net>2024-04-12 17:50:14 -0400
commitda18545e8cb3615dfc82b1ee020cd9232068bfda (patch)
treedf6498b1f72a2d850366894d15d8ec763a099dd3
parent7ef69b89b6f6c11919e5fe7927f96a1fa83d12d7 (diff)
Error in test assertion
-rwxr-xr-xtest1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test1.py b/test1.py
index 23d28d8..737d550 100755
--- a/test1.py
+++ b/test1.py
@@ -10,7 +10,7 @@ for test in range(10000):
assert i1 == i2 or \
(i1 < i2 and not (i1 > i2)) or \
(i1 > i2 and not (i1 < i2)) or \
- int(i1) & int(i2) == Serial.modulus >> 1
+ int(i1) ^ int(i2) == Serial.modulus >> 1
step = [i1, i2]
wrap = find_intermediate(i1, i2)