Skip to content
Snippets Groups Projects
Commit e5cff5b2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent c38809e2
Branches
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment