diff options
Diffstat (limited to 'tests/basics/bytes_compare2.py')
-rw-r--r-- | tests/basics/bytes_compare2.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/basics/bytes_compare2.py b/tests/basics/bytes_compare2.py index 769d76b119..02516de93a 100644 --- a/tests/basics/bytes_compare2.py +++ b/tests/basics/bytes_compare2.py @@ -1,7 +1,12 @@ -import array - print(b"1" == 1) print(b"123" == bytearray(b"123")) print(b"123" == "123") -# CPyhon gives False here +print(b'123' < bytearray(b"124")) +print(b'123' > bytearray(b"122")) +print(bytearray(b"23") in b"1234") + +import array + +print(array.array('b', [1, 2]) in b'\x01\x02\x03') +# CPython gives False here #print(b"\x01\x02\x03" == array.array("B", [1, 2, 3])) |