2026-05-20 10:22:35 +08:00

20 lines
438 B
Go

package appconfig
import "testing"
func TestNormalizeBannerDisplayScopeAcceptsChineseLabels(t *testing.T) {
cases := map[string]string{
"": "home",
"首页": "home",
"房间内": "room",
"充值页": "recharge",
"ROOM": "room",
"bad": "",
}
for input, want := range cases {
if got := NormalizeBannerDisplayScope(input); got != want {
t.Fatalf("scope %q mismatch: got %q want %q", input, got, want)
}
}
}