Skip to content

Commit 1a5764c

Browse files
committed
[idna] Update IdnaTest to final Unicode 10.0.0
1 parent 9b52fb8 commit 1a5764c

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

idna/tests/IdnaTest.txt

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IdnaTest.txt
2-
# Date: 2017-05-22, 14:06:39 GMT
2+
# Date: 2017-06-02, 14:19:52 GMT
33
# © 2017 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use, see http://www.unicode.org/terms_of_use.html
@@ -21,16 +21,16 @@
2121
# Leading and trailing spaces and tabs in each column are ignored.
2222
# Comments are indicated with hash marks.
2323
#
24-
# Column 1: type - T for transitional, N for nontransitional, B for both
25-
# Column 2: source - The source string to be tested
26-
# Column 3: toUnicode - The result of applying toUnicode to the source, using nontransitional.
27-
# A blank value means the same as the source value; a value in [...] is a set of status codes.
28-
# Column 4: toASCII - The result of applying toASCII to the source, using the specified type: T, N, or B.
29-
# A blank value means the same as the toUnicode value; a value in [...] is a set of status codes.
30-
# Column 5: idna2008Status - NV8 is only present if the status is valid but the character is excluded by IDNA2008
31-
# from all domain names for all versions of Unicode.
32-
# XV8 is present when the character is excluded by IDNA2008 for the current version of Unicode.
33-
# These are informative values only.
24+
# Column 1: type - T for transitional, N for nontransitional, B for both
25+
# Column 2: source - The source string to be tested
26+
# Column 3: toUnicode - The result of applying toUnicode to the source, using nontransitional.
27+
# A blank value means the same as the source value; a value in [...] is a set of error codes.
28+
# Column 4: toASCII - The result of applying toASCII to the source, using the specified type: T, N, or B.
29+
# A blank value means the same as the toUnicode value; a value in [...] is a set of error codes.
30+
# Column 5: idna2008 - NV8 is only present if the status is valid but the character is excluded by IDNA2008
31+
# from all domain names for all versions of Unicode.
32+
# XV8 is present when the character is excluded by IDNA2008 for the current version of Unicode.
33+
# These are informative values only.
3434
#
3535
# If the value of toUnicode is the same as source, the column will be blank.
3636
# The line comments currently show visible characters that have been escaped
@@ -59,10 +59,10 @@
5959
#
6060
# CONFORMANCE:
6161
#
62-
# To test for conformance to UTS46, an implementation must first perform the toASCII and to Unicode operations
63-
# on the source string, with the indicated type. Implementations may be more strict than UTS46;
64-
# thus they may have errors where the file indicates results. In particular, an implementation conformant to
65-
# IDNA2008 would disallow the input for lines marked with NV8.
62+
# To test for conformance to UTS46, an implementation must first perform the toUnicode operation
63+
# on the source string, then the toASCII operation (with the indicated type) on the source string.
64+
# Implementations may be more strict than UTS46; thus they may have errors where the file indicates results.
65+
# In particular, an implementation conformant to IDNA2008 would disallow the input for lines marked with NV8.
6666
#
6767
# Moreover, the error codes in the file are informative; implementations need only record that there is an error:
6868
# they need not reproduce those codes. Thus to then verify conformance for the toASCII and toUnicode columns:
@@ -569,12 +569,16 @@ N; \u0644\u200C; [B3 C1]; [B3 C1] # ل
569569
B; xn--ghb; \u0644; xn--ghb # ل
570570
B; \u0644; ; xn--ghb # ل
571571
B; xn--ghb413k; [B3 C1]; [B3 C1] # ل
572+
B; a。。b; [A4_2]; [A4_2]
573+
B; A。。B; [A4_2]; [A4_2]
574+
B; a..b; [A4_2]; [A4_2]
572575
T; \u200D。。\u06B9\u200C; [B1 B3 C1 C2 A4_2]; [A4_2] # ..ڹ
573576
N; \u200D。。\u06B9\u200C; [B1 B3 C1 C2 A4_2]; [B1 B3 C1 C2 A4_2] # ..ڹ
574577
B; ..xn--skb; [A4_2]; [A4_2] # ..ڹ
575578
B; xn--1ug..xn--skb080k; [B1 B3 C1 C2 A4_2]; [B1 B3 C1 C2 A4_2] # ..ڹ
576579
B; \u05D00\u0660; [B4]; [B4] # א0٠
577580
B; xn--0-zhc74b; [B4]; [B4] # א0٠
581+
B; $; [P1 V6]; [P1 V6]
578582

579583
# RANDOMIZED TESTS
580584

0 commit comments

Comments
 (0)