[lang-ref] ( is_digit ) ( python )
@pytest.mark.parametrize(
'text, expected',
[
('a', False),
('1', True),
(' ', False),
],
)
def test_is_digit(text, expected):
assert text.isdigit() is expected
@pytest.mark.parametrize(
'text, expected',
[
('a', False),
('1', True),
(' ', False),
],
)
def test_is_digit(text, expected):
assert text.isdigit() is expected