package cat import "testing" func TestTCISpotsUnsupported(t *testing.T) { // SPOT arrived in TCI 1.5. The SunSDR2 PRO report that prompted this was an // ExpertSDR announcing 1.3 — spots accepted and silently dropped. for _, c := range []struct { version string old bool }{ {"1.3", true}, {"1.4", true}, {"1.5", false}, {"1.9", false}, {"2.0", false}, {"", false}, // unparseable → assume it works {"weird", false}, // refusing to draw on a doubt is the worse mistake } { if got := tciSpotsUnsupported(c.version); got != c.old { t.Errorf("tciSpotsUnsupported(%q) = %v, want %v", c.version, got, c.old) } } }