Skip to content

Commit

Permalink
idnatest Punycode with uppercase ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
markusicu committed May 23, 2024
1 parent a1fb2f8 commit b8de51f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
9 changes: 8 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-22, 22:45:49 GMT
# Date: 2024-05-23, 04:13:59 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 @@ -559,6 +559,13 @@ unicode.org; ; ; ; ; ; # unicode.org
xn--snl253bgitxhzwu2arn60c; 陋㛼当𤎫竮䗗; ; xn--snl253bgitxhzwu2arn60c; ; ; # 陋㛼当𤎫竮䗗
電𡍪弳䎫窮䵗; ; ; xn--kbo60w31ob3z6t3av9z5b; ; ; # 電𡍪弳䎫窮䵗
xn--kbo60w31ob3z6t3av9z5b; 電𡍪弳䎫窮䵗; ; xn--kbo60w31ob3z6t3av9z5b; ; ; # 電𡍪弳䎫窮䵗
xn--A-1ga; aö; ; xn--a-1ga; ; ; # aö
aö; ; ; xn--a-1ga; ; ; # aö
ao\u0308; aö; ; xn--a-1ga; ; ; # aö
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ö

# RANDOMIZED TESTS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,5 +968,11 @@ public static UnicodeSet getIdna2008Valid() {
.appendCodePoint(0x7AEE)
.appendCodePoint(0x45D7)
.toString(),
// unicodetools issue #747:
// IdnaTestV2.txt should test for valid input with upper case in the ASCII part of Punycode
// Henri Sivonen:
// 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",
};
}

0 comments on commit b8de51f

Please sign in to comment.