self.checkequal(False, '', 'isdigit')
self.checkequal(False, 'a', 'isdigit')
self.checkequal(True, '0', 'isdigit')
self.checkequal(True, '0123456789', 'isdigit')
self.checkequal(False, '0123456789a', 'isdigit')
self.checkraises(TypeError, 'abc', 'isdigit', 42)
Feature or enhancement
Proposal:
test_isdigit() in
Lib/test/string_tests.py, Misses an edge case where a string with only digits and whitespaces are provided. Example - "123 ".isdigit() is False. It could be valid to test this case.Tests provided already:
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs