Commit 22ffd72e authored by Damien George's avatar Damien George

leon: Update CORE_BASICS/array1 test to work with restricted equality.

parent a78fc94f
......@@ -5,6 +5,7 @@ array('I', [1, 2, 3]) 3
1 -1
2
True
NotImplementedError
0
array('i')
False
......
......@@ -16,7 +16,11 @@ print(len(a), a[0])
a1 = array.array('l', [1, 2, 3])
a2 = array.array('L', [1, 2, 3])
print(a2[1])
print(a1 == a2)
print(a1 == array.array('l', [1, 2, 3]))
try:
print(a1 == a2)
except NotImplementedError:
print('NotImplementedError')
# Empty arrays
print(len(array.array('h')))
......
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