X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Funinorm%2Ftest-decomposition.c;h=684dee4521b3728f6d80cc6d25141c636b3edbe8;hb=4076a9bb3b7e5dfb023714bb6d858860a86d273a;hp=b29e7837866fd82a915b04023d34c513eba9d783;hpb=24281f1506de2ae0815b2eaa82bb892d2ca0a2c9;p=pspp diff --git a/tests/uninorm/test-decomposition.c b/tests/uninorm/test-decomposition.c index b29e783786..684dee4521 100644 --- a/tests/uninorm/test-decomposition.c +++ b/tests/uninorm/test-decomposition.c @@ -194,11 +194,20 @@ main () /* HANGUL SYLLABLE GEUL */ ret = uc_decomposition (0xAE00, &tag, decomposed); + /* See the clarification at , + section "Clarification of Hangul Jamo Handling". */ +#if 1 + ASSERT (ret == 2); + ASSERT (tag == UC_DECOMP_CANONICAL); + ASSERT (decomposed[0] == 0xADF8); + ASSERT (decomposed[1] == 0x11AF); +#else ASSERT (ret == 3); ASSERT (tag == UC_DECOMP_CANONICAL); ASSERT (decomposed[0] == 0x1100); ASSERT (decomposed[1] == 0x1173); ASSERT (decomposed[2] == 0x11AF); +#endif /* HANGUL SYLLABLE GEU */ ret = uc_decomposition (0xADF8, &tag, decomposed);