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

Method test_isdigit

Lib/test/test_str.py:796–806  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

794
795 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False != True
796 def test_isdigit(self):
797 super().test_isdigit()
798 self.checkequalnofix(True, '\u2460', 'isdigit')
799 self.checkequalnofix(False, '\xbc', 'isdigit')
800 self.checkequalnofix(True, '\u0660', 'isdigit')
801
802 for ch in ['\U00010401', '\U00010427', '\U00010429', '\U0001044E',
803 '\U0001F40D', '\U0001F46F', '\U00011065']:
804 self.assertFalse(ch.isdigit(), '{!a} is not a digit.'.format(ch))
805 for ch in ['\U0001D7F6', '\U00011066', '\U000104A0', '\U0001F107']:
806 self.assertTrue(ch.isdigit(), '{!a} is a digit.'.format(ch))
807
808 def test_isnumeric(self):
809 self.checkequalnofix(False, '', 'isnumeric')

Callers

nothing calls this directly

Calls 6

checkequalnofixMethod · 0.95
superClass · 0.85
assertFalseMethod · 0.80
assertTrueMethod · 0.80
isdigitMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected