aboutsummaryrefslogtreecommitdiff
path: root/src/unicode/script_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2025-01-08 11:21:30 -0500
committerRuss Cox <rsc@golang.org>2025-04-18 14:13:31 -0700
commit28fd9fa8a6de5f5e75a3ca2eeaa55b5ae4a2722b (patch)
tree4b6dd7ff7e4b0296b8828cb2d6785085240a5f4d /src/unicode/script_test.go
parent252c939445b6b03c5c82b54f7657c5d984ce6348 (diff)
downloadgo-28fd9fa8a6de5f5e75a3ca2eeaa55b5ae4a2722b.tar.xz
unicode: add CategoryAliases, Cn, LC
CategoryAliases is for regexp to use, for things like \p{Letter} as an alias for \p{L}. Cn and LC are special-case categories that were never implemented but should have been. These changes were generated by the updated generator in CL 641395. Fixes #70780. Change-Id: Ibba20ff76191c8ae9631ac5ba19965790fe0cc81 Reviewed-on: https://go-review.googlesource.com/c/go/+/641376 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/unicode/script_test.go')
-rw-r--r--src/unicode/script_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unicode/script_test.go b/src/unicode/script_test.go
index 66bfa3cb9e..3ae2800426 100644
--- a/src/unicode/script_test.go
+++ b/src/unicode/script_test.go
@@ -52,6 +52,10 @@ var inCategoryTest = []T{
{0x00bb, "P"},
{0x00a2, "S"},
{0x00a0, "Z"},
+ {0x0065, "LC"},
+ // Unassigned
+ {0x0378, "Cn"},
+ {0x0378, "C"},
}
var inPropTest = []T{