From c96a2f636b48b065e8404af6d67fbae5986fd34a Mon Sep 17 00:00:00 2001 From: Nicko van Someren Date: Tue, 14 Jan 2020 21:40:08 -0700 Subject: [PATCH] tests/basics: Expand test cases for equality of subclasses. --- tests/basics/subclass_native2_tuple.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/basics/subclass_native2_tuple.py b/tests/basics/subclass_native2_tuple.py index 9eb69e1575..a02d3a66dc 100644 --- a/tests/basics/subclass_native2_tuple.py +++ b/tests/basics/subclass_native2_tuple.py @@ -19,3 +19,11 @@ a = Ctuple2() 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)