[lang-ref] ( parse_int_contains_alphabet ) ( python )
def test_parse_int_contains_alphabet():
# ValueError
# this test is for atoi trap on C/C++
with pytest.raises(ValueError):
int('5a')
def test_parse_int_contains_alphabet():
# ValueError
# this test is for atoi trap on C/C++
with pytest.raises(ValueError):
int('5a')