Replacing blacklist with blocklist (#15082)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fea28821e3
Коммит
30bd506e76
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user