diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 12:31:18 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 12:31:18 +0200 |
commit | de5f416d60f7331b6c86b97ffe5c18176791780f (patch) | |
tree | da79326aad2046a5d1023ee209c6e8df54c684f4 | |
parent | be401a57288a04c597234a70b52a4e7148da6d4b (diff) |
Minor cleanup
-rw-r--r-- | test/_case-test.h | 12 | ||||
-rw-r--r-- | test/data/LowercaseTest | 16 | ||||
-rw-r--r-- | test/data/TitlecaseTest | 8 | ||||
-rw-r--r-- | test/data/UppercaseTest | 3 |
4 files changed, 23 insertions, 16 deletions
diff --git a/test/_case-test.h b/test/_case-test.h index 91e928c..c837042 100644 --- a/test/_case-test.h +++ b/test/_case-test.h @@ -66,21 +66,21 @@ test(const char8_t *line, int id) char8_t *buf = bufalloc(nullptr, 1, after.len); size_t bufsz = FUNC(nullptr, 0, before, cf); if (bufsz != after.len) { - warn("case %d: expected %s buffer size of %zu but got %zu (flags=‘%.*s’)", - id, STR(CASETYPE_VERB), after.len, bufsz, SV_PRI_ARGS(flags)); + warn("case %d: expected %s buffer size of %zu but got %zu", + id, STR(CASETYPE_VERB), after.len, bufsz); return false; } bufsz = FUNC(buf, bufsz, before, cf); if (bufsz != after.len) { - warn("case %d: expected %scased length of %zu but got %zu (flags=‘%.*s’)", - id, STR(CASETYPE_VERB), after.len, bufsz, SV_PRI_ARGS(flags)); + warn("case %d: expected %scased length of %zu but got %zu", + id, STR(CASETYPE_VERB), after.len, bufsz); return false; } if (!memeq(buf, after.p, bufsz)) { - warn("case %d: expected ‘%.*s’ but got ‘%.*s’ (flags=‘%.*s’)", - id, SV_PRI_ARGS(after), (int)bufsz, buf, SV_PRI_ARGS(flags)); + warn("case %d: expected ‘%.*s’ but got ‘%.*s’", + id, SV_PRI_ARGS(after), (int)bufsz, buf); return false; } diff --git a/test/data/LowercaseTest b/test/data/LowercaseTest index c80ccee..c7417fa 100644 --- a/test/data/LowercaseTest +++ b/test/data/LowercaseTest @@ -11,10 +11,10 @@ LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT.;lorem ipsum dolor sit a # Cyrillic alphabet СЛАВА УКРАЇНІ ПРОТИ РОСІЙСЬКОЇ АГРЕСІЇ!;слава україні проти російської агресії!; -# In lithuanian we need to retain the dot above ‘i’ and ‘j’ when there’s an -# accent above the uppercased variant. Also test with both single-codepoint -# variants (i.e. U+00CC LATIN CAPITAL I WITH GRAVE) and variants that use -# combining-characters. +# In lithuanian we need to retain the dot above ‘i’ and ‘j’ when there’s +# an accent above the uppercased variant. Also test with both +# single-codepoint variants (i.e. U+00CC LATIN CAPITAL I WITH GRAVE) and +# variants that use combining-characters. Į̃;į̃; Į̃;į̇̃;LT J́;j́; @@ -30,8 +30,12 @@ RÀSTI, MÈSTI, KÌLO;ràsti, mèsti, ki̇̀lo;LT LJUDEVIT GAJ;ljudevit gaj; Ljudevit Gaj;ljudevit gaj; -# Add U+0307 COMBINING DOT ABOVE after ‘i’ when lowercasing ‘İ’ in non-Azeri and -# -Turkish locales +# Azeri/Turkish ‘ı’ and ‘i’ are different letters +I;i; +I;ı;AZ + +# Add U+0307 COMBINING DOT ABOVE after ‘i’ when lowercasing ‘İ’ in +# non-Azeri and -Turkish locales İSTANBUL’LUYUM;i̇stanbul’luyum; İSTANBUL’LUYUM;istanbul’luyum;AZ diff --git a/test/data/TitlecaseTest b/test/data/TitlecaseTest index 24256a5..58e6519 100644 --- a/test/data/TitlecaseTest +++ b/test/data/TitlecaseTest @@ -23,10 +23,10 @@ complex-language and -script;Complex-Language And -Script; СЛАВА УКРАЇНІ ПРОТИ РОСІЙСЬКОЇ АГРЕСІЇ!;Слава Україні Проти Російської Агресії!; слава україні проти російської агресії!;Слава Україні Проти Російської Агресії!; -# In lithuanian we need to retain the dot above ‘i’ and ‘j’ when there’s an -# accent above the uppercased variant. Also test with both single-codepoint -# variants (i.e. U+00CC LATIN CAPITAL I WITH GRAVE) and variants that use -# combining-characters. +# In lithuanian we need to retain the dot above ‘i’ and ‘j’ when there’s +# an accent above the uppercased variant. Also test with both +# single-codepoint variants (i.e. U+00CC LATIN CAPITAL I WITH GRAVE) and +# variants that use combining-characters. i̇̀;İ̀; i̇̀;Ì;LT RÀSTI, MÈSTI, KÌLO;Ràsti, Mèsti, Kìlo; diff --git a/test/data/UppercaseTest b/test/data/UppercaseTest index e4164d6..facd71c 100644 --- a/test/data/UppercaseTest +++ b/test/data/UppercaseTest @@ -1,6 +1,9 @@ # Empty input ;; +# Short input +ꮢ;Ꮢ; + # Latin alphabet Lorem ipsum dolor sit amet, consectetur adipiscing elit.;LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT.; |