fn testUtf16CountCodepoints() !void
fn testUtf16CountCodepoints() !void { try testing.expectEqual( @as(usize, 1), try utf16CountCodepoints(utf8ToUtf16LeStringLiteral("a")), ); try testing.expectEqual( @as(usize, 10), try utf16CountCodepoints(utf8ToUtf16LeStringLiteral("abcdefghij")), ); try testing.expectEqual( @as(usize, 10), try utf16CountCodepoints(utf8ToUtf16LeStringLiteral("äåéëþüúíóö")), ); try testing.expectEqual( @as(usize, 5), try utf16CountCodepoints(utf8ToUtf16LeStringLiteral("こんにちは")), ); }