Replacing blacklist with blocklist (#15082)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Jesús Espino
2020-07-22 08:30:10 +02:00
коммит произвёл GitHub
родитель fea28821e3
Коммит 30bd506e76
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@@ -766,8 +766,8 @@ func TestSanitizeUnicode(t *testing.T) {
{name: "ascii only", arg: "Hello There", want: "Hello There"},
{name: "allowed unicode", arg: "Ādam likes Iñtërnâtiônàližætiøn", want: "Ādam likes Iñtërnâtiônàližætiøn"},
{name: "allowed unicode escaped", arg: "\u00eaI like hats\u00e2", want: "êI like hatsâ"},
{name: "blacklist char, don't reverse string", arg: "\u202E2resu", want: "2resu"},
{name: "blacklist chars, scoping musical notation", arg: musicArg, want: musicWant},
{name: "blocklist char, don't reverse string", arg: "\u202E2resu", want: "2resu"},
{name: "blocklist chars, scoping musical notation", arg: musicArg, want: musicWant},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {