MCPcopy Index your code
hub / github.com/python/cpython / test_cmp

Method test_cmp

Lib/test/seq_tests.py:357–362  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355 self.assertIs(a >= b, r >= 0)
356
357 def test_cmp(self):
358 a = self.type2test([0, 1])
359 self._assert_cmp(a, a, 0)
360 self._assert_cmp(a, self.type2test([0, 1]), 0)
361 self._assert_cmp(a, self.type2test([0]), 1)
362 self._assert_cmp(a, self.type2test([0, 2]), -1)
363
364 def test_count(self):
365 a = self.type2test([0, 1, 2])*3

Callers

nothing calls this directly

Calls 2

_assert_cmpMethod · 0.95
type2testMethod · 0.80

Tested by

no test coverage detected