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

Method test_cmp

Lib/test/string_tests.py:135–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 self.assertIs(a >= b, r >= 0)
134
135 def test_cmp(self):
136 a = self.fixtype('ab')
137 self._assert_cmp(a, a, 0)
138 self._assert_cmp(a, self.fixtype('ab'), 0)
139 self._assert_cmp(a, self.fixtype('a'), 1)
140 self._assert_cmp(a, self.fixtype('ac'), -1)
141
142 def test_count(self):
143 self.checkequal(3, 'aaa', 'count', 'a')

Callers

nothing calls this directly

Calls 2

fixtypeMethod · 0.95
_assert_cmpMethod · 0.95

Tested by

no test coverage detected