Skip to content

Commit fb58ca3

Browse files
committed
Add comparison tests for tuple
1 parent 696bf8e commit fb58ca3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/snippets/tuple.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212
# assert 3 * x == (1, 2, 1, 2, 1, 2)
1313
assert x * 0 == ()
1414
assert x * -1 == () # integers less than zero treated as 0
15+
16+
assert y < x, "tuple __lt__ failed"
17+
assert x > y, "tuple __gt__ failed"

0 commit comments

Comments
 (0)