From 00893e79fc62966067af1a106567db96bd170338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 3 Mar 2024 19:11:32 +0100 Subject: New upstream version 1.2 --- tests/unictype/test-categ_byname.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests/unictype/test-categ_byname.c') 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; @@ -218,6 +216,16 @@ main () 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; -- cgit v1.2.3