summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/secure/precis/profile_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-04-24 20:11:36 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-04-24 20:11:36 -0400
commitf5437632f486b7d0a0a181c58f113c86d032b02c (patch)
tree407388e3003a210a89f4b2128d7ad656f8b79d26 /vendor/golang.org/x/text/secure/precis/profile_test.go
parent7f68a60f8c228d5604e0566bf84cabb145d16c37 (diff)
downloadchat-f5437632f486b7d0a0a181c58f113c86d032b02c.tar.gz
chat-f5437632f486b7d0a0a181c58f113c86d032b02c.tar.bz2
chat-f5437632f486b7d0a0a181c58f113c86d032b02c.zip
Upgrading server dependancies (#6215)
Diffstat (limited to 'vendor/golang.org/x/text/secure/precis/profile_test.go')
-rw-r--r--vendor/golang.org/x/text/secure/precis/profile_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/golang.org/x/text/secure/precis/profile_test.go b/vendor/golang.org/x/text/secure/precis/profile_test.go
index 253b2a08a..916fc8b6d 100644
--- a/vendor/golang.org/x/text/secure/precis/profile_test.go
+++ b/vendor/golang.org/x/text/secure/precis/profile_test.go
@@ -100,6 +100,13 @@ var compareTestCases = []struct {
{"Å", "å", true},
{"ff", "ff", true}, // because of NFKC
{"ß", "sS", false},
+
+ // After applying the Nickname profile, \u00a8 becomes \u0020\u0308,
+ // however because the nickname profile is not idempotent, applying it again
+ // to \u0020\u0308 results in \u0308. This behavior is "correct", even if it
+ // is unexpected.
+ {"\u00a8", "\u0020\u0308", false},
+ {"\u0020\u0308", "\u0308", true},
}},
}