diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-15 20:58:40 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-15 20:58:40 +0300 |
commit | 70328e419a3f7d826699d466a1606e4296d538b6 (patch) | |
tree | e07ba4caa834af02f4827fbba1d71edca4efae85 /tests/basics/bytes_compare2.py | |
parent | ad3baec12f2d86cda58bc2a51173c76b6c335fa2 (diff) | |
download | micropython-70328e419a3f7d826699d466a1606e4296d538b6.tar.gz micropython-70328e419a3f7d826699d466a1606e4296d538b6.zip |
py: Implement more complete bytes comparison handling.
Diffstat (limited to 'tests/basics/bytes_compare2.py')
-rw-r--r-- | tests/basics/bytes_compare2.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/bytes_compare2.py b/tests/basics/bytes_compare2.py new file mode 100644 index 0000000000..769d76b119 --- /dev/null +++ b/tests/basics/bytes_compare2.py @@ -0,0 +1,7 @@ +import array + +print(b"1" == 1) +print(b"123" == bytearray(b"123")) +print(b"123" == "123") +# CPyhon gives False here +#print(b"\x01\x02\x03" == array.array("B", [1, 2, 3])) |