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

Method test_isalnum

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

Source from the content-addressed store, hash-verified

162
163 @bigmemtest(size=_2G, memuse=2)
164 def test_isalnum(self, size):
165 _ = self.from_latin1
166 SUBSTR = _('123456')
167 s = _('a') * size + SUBSTR
168 self.assertTrue(s.isalnum())
169 s += _('.')
170 self.assertFalse(s.isalnum())
171
172 @bigmemtest(size=_2G, memuse=2)
173 def test_isalpha(self, size):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
isalnumMethod · 0.45

Tested by

no test coverage detected