package service import "testing" func TestIsLegacyLewanMirrorSKU(t *testing.T) { cases := []struct { sku string want bool }{ {"LEWAN_8EED3610", true}, {"lewan_abc", true}, {"Lewan_x", true}, {"suit_shadow_gothic", false}, {"pack_dragon_palace", false}, {"", false}, {" LEWAN_X ", true}, } for _, tc := range cases { if got := IsLegacyLewanMirrorSKU(tc.sku); got != tc.want { t.Fatalf("IsLegacyLewanMirrorSKU(%q)=%v want %v", tc.sku, got, tc.want) } } }