tests/bytearray1: Add testcases for "in" operator.
This commit is contained in:
parent
c38809e26b
commit
e5cff5b223
|
@ -31,3 +31,9 @@ print(bytearray() == bytearray())
|
|||
print(bytearray() == 1)
|
||||
|
||||
# TODO: other comparisons
|
||||
|
||||
# __contains__
|
||||
b = bytearray(b"\0foo\0")
|
||||
print(b"foo" in b)
|
||||
print(b"foo\x01" in b)
|
||||
print(b"" in b)
|
||||
|
|
Loading…
Reference in New Issue