tests/bytearray1: Add testcases for "in" operator.

vfs-listdir
Paul Sokolovsky 2016-02-14 18:56:19 +02:00
parent c38809e26b
commit e5cff5b223
1 changed files with 6 additions and 0 deletions

View File

@ -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)