summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/bytearray1.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/bytearray1.py b/tests/basics/bytearray1.py
index 02066cafc3..d8e669506b 100644
--- a/tests/basics/bytearray1.py
+++ b/tests/basics/bytearray1.py
@@ -17,3 +17,12 @@ print(s)
print(a[1:])
print(a[:-1])
print(a[2:3])
+
+# Comparisons
+print(bytearray([1]) == bytearray([1]))
+print(bytearray([1]) == bytearray([2]))
+print(bytearray([1]) == b"1")
+print(b"1" == bytearray([1]))
+print(bytearray() == bytearray())
+
+# TODO: other comparisons