diff options
author | Raymond Hettinger <python@rcn.com> | 2014-03-30 17:12:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-03-30 17:12:09 (GMT) |
commit | e5bb551cc5042a2523f06d0135d055e2274ae0d7 (patch) | |
tree | 86358310467907668ecba45bc60ea699096c53d2 /Lib | |
parent | ba26001ba6bbdfbb5d3759c9be6ea9a128038c59 (diff) | |
download | cpython-e5bb551cc5042a2523f06d0135d055e2274ae0d7.zip cpython-e5bb551cc5042a2523f06d0135d055e2274ae0d7.tar.gz cpython-e5bb551cc5042a2523f06d0135d055e2274ae0d7.tar.bz2 |
Issue 21100: Amazingly, tuple lexicographic ordering was untested.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tuple.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index e41711c..14c6430 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -201,6 +201,14 @@ class TupleTest(seq_tests.CommonTest): with self.assertRaises(TypeError): [3,] + T((1,2)) + def test_lexicographic_ordering(self): + # Issue 21100 + a = self.type2test([1, 2]) + b = self.type2test([1, 2, 0]) + c = self.type2test([1, 3]) + self.assertLess(a, b) + self.assertLess(b, c) + def test_main(): support.run_unittest(TupleTest) |