From e9f055fb8b6edd3c4b01c0d97bcdfbe5d726d32e Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Tue, 14 May 2024 21:32:28 -0700 Subject: [PATCH] IdnaTestV2: test disallowed_STD3 --- unicodetools/data/idna/dev/IdnaTestV2.txt | 7 ++++++- .../src/main/java/org/unicode/idna/GenerateIdnaTest.java | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/unicodetools/data/idna/dev/IdnaTestV2.txt b/unicodetools/data/idna/dev/IdnaTestV2.txt index cd4a034df..cdc2943ab 100644 --- a/unicodetools/data/idna/dev/IdnaTestV2.txt +++ b/unicodetools/data/idna/dev/IdnaTestV2.txt @@ -1,5 +1,5 @@ # IdnaTestV2.txt -# Date: 2024-05-15, 03:51:27 GMT +# Date: 2024-05-15, 04:28:51 GMT # © 2024 Unicode®, Inc. # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. # For terms of use and license, see https://www.unicode.org/terms_of_use.html @@ -537,6 +537,11 @@ xn--1ug..xn--skb080k; \u200D..\u06B9\u200C; [B1, B3, C1, C2, X4_2]; xn--1ug..xn- \u05D00\u0660; ; [B4]; xn--0-zhc74b; ; ; # א0٠ xn--0-zhc74b; \u05D00\u0660; [B4]; xn--0-zhc74b; ; ; # א0٠ $; ; [V7]; ; ; ; # $ +⑷.four; ; [V7]; xn--csh.four; ; ; # ⑷.four +(4).four; ; [V7]; ; ; ; # (4).four +⑷.FOUR; ⑷.four; [V7]; xn--csh.four; ; ; # ⑷.four +⑷.Four; ⑷.four; [V7]; xn--csh.four; ; ; # ⑷.four +xn--csh.four; ⑷.four; [V7]; xn--csh.four; ; ; # ⑷.four # RANDOMIZED TESTS diff --git a/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java b/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java index eb06d93ec..dd42975e6 100644 --- a/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java +++ b/unicodetools/src/main/java/org/unicode/idna/GenerateIdnaTest.java @@ -884,5 +884,9 @@ public static UnicodeSet getIdna2008Valid() { "\u200D。。\u06B9\u200C", "\u05D0\u0030\u0660", "$", + // 2477 ; disallowed_STD3_mapped ; 0028 0034 0029 # PARENTHESIZED DIGIT FOUR + "\u2477.four", + // parentheses are disallowed_STD3_valid + "(4).four", }; }