mirror of
https://github.com/on4kjm/FLEcli.git
synced 2025-01-18 13:01:09 +01:00
tweak validate_test.go
This commit is contained in:
parent
6a570a98e8
commit
fd7902bdfc
1 changed files with 7 additions and 2 deletions
|
@ -229,6 +229,11 @@ func TestValidateCall(t *testing.T) {
|
|||
args{sign: "xyz4/on4kjm"},
|
||||
"*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 /",
|
||||
args{sign: "F/on4kjm/p/x"},
|
||||
|
@ -316,8 +321,8 @@ func TestIsBand(t *testing.T) {
|
|||
},
|
||||
{
|
||||
"valid band but uppercase",
|
||||
args{inputStr: "40M"},
|
||||
true, 7.0, 7.3, "7MHz",
|
||||
args{inputStr: "60M"},
|
||||
true, 5.06, 5.45, "5MHz",
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
|
Loading…
Reference in a new issue