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) } } }