2023-09-04 Bruno Haible <bruno@clisp.org>
+ unictype/category-byname tests: Fix gcc -Wunused-value warning.
+ * tests/unictype/test-categ_byname.c (main): Add some tests for category
+ Nl.
+
unigbrk/uc-grapheme-breaks tests: Fix gcc -Wunused-function warning.
* tests/unigbrk/test-uc-grapheme-breaks.c
(graphemebreakproperty_to_string): Mark as possibly unused.
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;
ASSERT (!uc_is_general_category (c, ct));
}
+ {
+ 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;