mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-31 08:49:09 -04:00
When the common prefix ended right after a complete 2 or 3 byte rune,
the rune was left out, e.g. `prefix_length("é", "é")` returned 0. Use
the width from `string_decode_rune` to check if the rune fits.
Add cases for it to `test_prefix_length`.