mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Add extra_tests for array.__contains__
This commit is contained in:
1 parent
0527c4eae6
commit
a866d881e5
1 file changed
+5
@@ -112,3 +112,8 @@ assert str(a.__class__.__name__) == "array"
|
||||
# test arrayiterator name
|
||||
i = iter(a)
|
||||
assert str(i.__class__.__name__) == "arrayiterator"
|
||||
|
||||
# teset array.__contains__
|
||||
a = array('B', [0])
|
||||
assert a.__contains__(0)
|
||||
assert not a.__contains__(1)
|
||||
Reference in new issue
Block a user