aboutsummaryrefslogtreecommitdiff
path: root/src/unicode/script_test.go
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2015-06-21 20:21:04 +0200
committerRuss Cox <rsc@golang.org>2015-06-26 18:01:29 +0000
commitfe15da62f778d0db62104ed8c8a7b31a150f7753 (patch)
treefee8ea39507b86c4e1a1d8aa6d64555e75a7e03e /src/unicode/script_test.go
parent834fef80ae025fdeaeeb210803d63634b76ddedd (diff)
downloadgo-fe15da62f778d0db62104ed8c8a7b31a150f7753.tar.xz
unicode: upgrade to 8.0.0
Not sure if I'm on time for 1.5; Unicode 8 just got released. Straighforward upgrade. Only changed maketables.go to prevent it from adding the Cherokee upper and lower case mappings. This change causes the caseOrbit table to NOT change. Added tests to verify that the relevant functions still produce the correct result, even for Cherokee. Fixes #11309 Change-Id: I42850f5b3399bde125b002efc78eff96dbd86a08 Reviewed-on: https://go-review.googlesource.com/11286 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/unicode/script_test.go')
-rw-r--r--src/unicode/script_test.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/unicode/script_test.go b/src/unicode/script_test.go
index 795cb4e171..935c225c37 100644
--- a/src/unicode/script_test.go
+++ b/src/unicode/script_test.go
@@ -14,9 +14,11 @@ type T struct {
script string
}
-// Hand-chosen tests from Unicode 5.1.0, 6.0.0, 6.2.0, 6.3.0 and 7.0.0 mostly to
-// discover when new scripts and categories arise.
+// Hand-chosen tests from Unicode 5.1.0, 6.0.0, 6.2.0, 6.3.0, 7.0.0 and 8.0.0
+// mostly to discover when new scripts and categories arise.
var inTest = []T{
+ {0x11711, "Ahom"},
+ {0x14646, "Anatolian_Hieroglyphs"},
{0x06e2, "Arabic"},
{0x0567, "Armenian"},
{0x10b20, "Avestan"},
@@ -58,6 +60,7 @@ var inTest = []T{
{0x3028, "Han"},
{0x11b8, "Hangul"},
{0x1727, "Hanunoo"},
+ {0x108FF, "Hatran"},
{0x05a0, "Hebrew"},
{0x3058, "Hiragana"},
{0x10841, "Imperial_Aramaic"},
@@ -94,12 +97,14 @@ var inTest = []T{
{0x11611, "Modi"},
{0x1822, "Mongolian"},
{0x16a60, "Mro"},
+ {0x11293, "Multani"},
{0x104c, "Myanmar"},
{0x10880, "Nabataean"},
{0x19c3, "New_Tai_Lue"},
{0x07f8, "Nko"},
{0x169b, "Ogham"},
{0x1c6a, "Ol_Chiki"},
+ {0x10C80, "Old_Hungarian"},
{0x10310, "Old_Italic"},
{0x10a80, "Old_North_Arabian"},
{0x10350, "Old_Permic"},
@@ -121,6 +126,7 @@ var inTest = []T{
{0x111a0, "Sharada"},
{0x10463, "Shavian"},
{0x115c1, "Siddham"},
+ {0x1D920, "SignWriting"},
{0x0dbd, "Sinhala"},
{0x110d0, "Sora_Sompeng"},
{0x1ba3, "Sundanese"},