[lang-ref] ( is_alnum_multibyte ) ( python )
@pytest.mark.parametrize(
'text, expected',
[
('abc123', True), # 複数文字
('abc 123', False),
('a', True), # 日本語も、それらしく判定される
('1', True),
(' ', False),
(')', False),
('あ', True), # 意外
('漢', True), # 意外
],
)
def test_is_alnum_multibyte(text, expected):
assert text.isalnum() is expected