tweak validate_test.go

pull/30/head
Jean-Marc Meessen 4 years ago
parent 6a570a98e8
commit fd7902bdfc

@ -229,6 +229,11 @@ func TestValidateCall(t *testing.T) {
args{sign: "xyz4/on4kjm"}, args{sign: "xyz4/on4kjm"},
"*XYZ4/ON4KJM", "[XYZ4] is an invalid prefix", "*XYZ4/ON4KJM", "[XYZ4] is an invalid prefix",
}, },
{
"invalid prefix (when suffix is supplied)",
args{sign: "xyz4/on4kjm/p"},
"*XYZ4/ON4KJM/P", "[XYZ4] is an invalid prefix",
},
{ {
"Too many /", "Too many /",
args{sign: "F/on4kjm/p/x"}, args{sign: "F/on4kjm/p/x"},
@ -316,8 +321,8 @@ func TestIsBand(t *testing.T) {
}, },
{ {
"valid band but uppercase", "valid band but uppercase",
args{inputStr: "40M"}, args{inputStr: "60M"},
true, 7.0, 7.3, "7MHz", true, 5.06, 5.45, "5MHz",
}, },
} }
for _, tt := range tests { for _, tt := range tests {

Loading…
Cancel
Save