[lang-ref] ( string_character_size ) ( python )

@pytest.mark.parametrize(
    's, expected',
    [
        ('', 0),
        ('abc', 3),
        ('あいう', 3),
    ],
)
def test_string_character_size(s, expected):
    # len(s)
    size = len(s)
    assert size == expected