MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_isdigit

Method test_isdigit

Lib/test/test_bigmem.py:182–188  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

180
181 @bigmemtest(size=_2G, memuse=2)
182 def test_isdigit(self, size):
183 _ = self.from_latin1
184 SUBSTR = _('123456')
185 s = _('9') * size + SUBSTR
186 self.assertTrue(s.isdigit())
187 s += _('z')
188 self.assertFalse(s.isdigit())
189
190 @bigmemtest(size=_2G, memuse=2)
191 def test_islower(self, size):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
isdigitMethod · 0.45

Tested by

no test coverage detected