diff options
Diffstat (limited to 'tests/unictype/test-categ_byname.c')
-rw-r--r-- | tests/unictype/test-categ_byname.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/unictype/test-categ_byname.c b/tests/unictype/test-categ_byname.c index 2489caaa..8cf94f4a 100644 --- a/tests/unictype/test-categ_byname.c +++ b/tests/unictype/test-categ_byname.c @@ -1,5 +1,5 @@ /* Test the Unicode character type functions. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2024 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -206,8 +206,6 @@ main () ASSERT (category_equals (uc_general_category_byname ("UNASSIGNED"), UC_CATEGORY_Cn)); ASSERT (category_equals (uc_general_category_byname ("Unassigned"), UC_CATEGORY_Cn)); - uc_general_category_byname ("Nl"); - { uc_general_category_t ct = uc_general_category_byname ("Nd"); unsigned int c; @@ -219,6 +217,16 @@ main () } { + uc_general_category_t ct = uc_general_category_byname ("Nl"); + unsigned int c; + + for (c = 0x2160; c < 0x2180; c++) + ASSERT (uc_is_general_category (c, ct)); + ASSERT (!uc_is_general_category (0x0BF1, ct)); + ASSERT (!uc_is_general_category (0x0D71, ct)); + } + + { uc_general_category_t ct = uc_general_category_byname ("Foo"); unsigned int c; |