summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/text/secure/precis/profile_test.go
diff options
context:
space:
mode:
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},
}},
}