Skip to content

Commit

Permalink
add test case for UseSTD3ASCIIRules with compat equals
Browse files Browse the repository at this point in the history
  • Loading branch information
markusicu committed Aug 6, 2024
1 parent c1e77f0 commit 47405ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unicodetools/data/idna/dev/IdnaTestV2.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IdnaTestV2.txt
# Date: 2024-05-23, 04:13:59 GMT
# Date: 2024-07-03, 20:55:13 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
Expand Down Expand Up @@ -566,6 +566,11 @@ AO\u0308; aö; ; xn--a-1ga; ; ; # aö
AÖ; aö; ; xn--a-1ga; ; ; # aö
Aö; aö; ; xn--a-1ga; ; ; # aö
Ao\u0308; aö; ; xn--a-1ga; ; ; # aö
=\u0338; ; [U1]; xn--5ta3800k; ; ; # ≠
≠; ; ; xn--1ch; ; ; # ≠
=\u0338; ≠; ; xn--1ch; ; ; # ≠
xn--1ch; ≠; ; xn--1ch; ; ; # ≠
xn--5ta3800k; =\u0338; [U1]; xn--5ta3800k; ; ; # ≠

# RANDOMIZED TESTS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -974,5 +974,10 @@ public static UnicodeSet getIdna2008Valid() {
// IdnaTestV2.txt missed a bug in the UTS 46 implementation that I'm writing due to
// not testing an upper-case letter in the ASCII part of Punycode when there are no errors.
"xn--A-1ga",
// https://www.unicode.org/L2/L2024/24063-pubrev.html#ID20240402104744 / PAG issue #282:
// Subtle behavior change for UseSTD3ASCIIRules=true
// due to simplified checking only in Validity Criteria, after Map+Normalize.
// fullwidth equals + combining solidus overlay
"\uFF1D\u0338",
};
}

0 comments on commit 47405ac

Please sign in to comment.