lib: split utf8 tests into rune/encode/decode/types per ref/hare/encoding/utf8

Pure move: utf8_test.ww dissolves along its banner seams into sibling
rune_test.ww (runesz/utf8sz), encode_test.ww (encoderune),
decode_test.ww (decoder next/prev/validate/remaining/slice/position
plus the encode->decode round-trip), and types_test.ww (strerror),
mirroring ref/hare/encoding/utf8/{rune,encode,decode,types}.ha
ownership (types.ha:12 owns strerror). Blocks are byte-identical;
only the banner lines are deleted. The streq helper moves with its
sole consumer, strerror_cases, into types_test.ww. The impl utf8.ww
is untouched (no banners).

Consumers: Makefile LIBRARY_TESTS replaces the utf8_test.ww entry
with the four new entries at the same position; the
test/byteid/libbyteid_test.ww roster row becomes four fx rows,
NENTEXPECT 52->55 (+3).
This commit is contained in:
2026-08-08 16:41:48 +09:00
parent 4f37a8b425
commit cf90c50c38
6 changed files with 145 additions and 137 deletions

View File

@@ -490,7 +490,9 @@ LIBRARY_TESTS = lib/errors/errno_test.ww lib/ascii/ascii_test.ww \
lib/strings/index_test.ww lib/strings/compare_test.ww \
lib/bytes/equal_test.ww lib/bytes/index_test.ww \
lib/bytes/contains_test.ww lib/bytes/tokenize_test.ww \
lib/bytes/trim_test.ww lib/encoding/utf8/utf8_test.ww \
lib/bytes/trim_test.ww lib/encoding/utf8/rune_test.ww \
lib/encoding/utf8/encode_test.ww lib/encoding/utf8/decode_test.ww \
lib/encoding/utf8/types_test.ww \
lib/bufio/bufio_test.ww lib/math/random/random_test.ww \
lib/math/checked/checked_test.ww lib/fmt/fmt_test.ww \
lib/log/log_test.ww lib/log/silent_test.ww lib/fnmatch/fnmatch_test.ww \