diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2018-07-24 13:18:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 13:18:48 -0400 |
commit | d4a58cfec5345bbb2bb0db1e85172a8cff278da7 (patch) | |
tree | 01a7a3f741550c3a1dbec3b49a70f5d5f2061d6f /test | |
parent | 02f4e1890cf8135b609b404c58ac7e8b27136ad6 (diff) | |
download | libutf8proc-d4a58cfec5345bbb2bb0db1e85172a8cff278da7.tar.gz libutf8proc-d4a58cfec5345bbb2bb0db1e85172a8cff278da7.tar.bz2 |
update data and algorithms for Unicode 11 (#140)
Diffstat (limited to 'test')
-rw-r--r-- | test/case.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/case.c b/test/case.c index a267609..b3947e2 100644 --- a/test/case.c +++ b/test/case.c @@ -19,7 +19,9 @@ int main(int argc, char **argv) check(u == c || utf8proc_codepoint_valid(u), "invalid toupper"); check(t == c || utf8proc_codepoint_valid(t), "invalid totitle"); - if (utf8proc_codepoint_valid(c) && (l == u) != (l == t)) { + if (utf8proc_codepoint_valid(c) && (l == u) != (l == t) && + /* Unicode 11: Georgian Mkhedruli chars have uppercase but no titlecase. */ + !(((c >= 0x10d0 && c <= 0x10fa) || c >= (0x10fd && c <= 0x10ff)) && l != u)) { fprintf(stderr, "unexpected titlecase %x for lowercase %x / uppercase %x\n", t, l, c); ++error; } |