Skip to content

Commit

Permalink
tests/basics: Expand test cases for equality of subclasses.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickovs authored and dpgeorge committed Jan 30, 2020
1 parent 3aab54b commit c96a2f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/basics/subclass_native2_tuple.py
Expand Up @@ -19,3 +19,11 @@ class Ctuple2(tuple, Base1):
print(len(a))
a = Ctuple2([1, 2, 3])
print(len(a))

a = tuple([1,2,3])
b = Ctuple1([1,2,3])
c = Ctuple2([1,2,3])

print(a == b)
print(b == c)
print(c == a)

0 comments on commit c96a2f6

Please sign in to comment.