mirror of
https://github.com/on4kjm/FLEcli.git
synced 2025-01-18 13:01:09 +01:00
Reproduce issue
This commit is contained in:
parent
43f26eda69
commit
ad8b7f97fa
3 changed files with 25 additions and 0 deletions
|
@ -153,6 +153,16 @@ func TestParseLine(t *testing.T) {
|
|||
args{inputStr: "1230 oe6cud/p oe/st-309", previousLine: LogLine{Mode: "FM", ModeType: "PHONE"}},
|
||||
LogLine{Call: "OE6CUD/P", Time: "1230", ActualTime: "1230", RSTsent: "59", RSTrcvd: "59", Mode: "FM", ModeType: "PHONE", SOTA: "OE/ST-309"}, "",
|
||||
},
|
||||
{
|
||||
"SOTA keywork (american SOTA ref)",
|
||||
args{inputStr: "1230 oe6cud/p sota W7A/YV-102", previousLine: LogLine{Mode: "FM", ModeType: "PHONE"}},
|
||||
LogLine{Call: "OE6CUD/P", Time: "1230", ActualTime: "1230", RSTsent: "59", RSTrcvd: "59", Mode: "FM", ModeType: "PHONE", SOTA: "W7A/YV-102"}, "",
|
||||
},
|
||||
{
|
||||
"implied SOTA keywork (american SOTA ref)",
|
||||
args{inputStr: "1230 oe6cud/p W7A/YV-102", previousLine: LogLine{Mode: "FM", ModeType: "PHONE"}},
|
||||
LogLine{Call: "OE6CUD/P", Time: "1230", ActualTime: "1230", RSTsent: "59", RSTrcvd: "59", Mode: "FM", ModeType: "PHONE", SOTA: "W7A/YV-102"}, "",
|
||||
},
|
||||
{
|
||||
"WWFF keywork ",
|
||||
args{inputStr: "1230 oe6cud/p wwff onff-0258", previousLine: LogLine{Mode: "FM", ModeType: "PHONE"}},
|
||||
|
|
|
@ -152,6 +152,11 @@ func TestValidateSota(t *testing.T) {
|
|||
args{inputStr: "w4z/ON-001"},
|
||||
"W4Z/ON-001", "",
|
||||
},
|
||||
{
|
||||
"Good ref (american style) - Issue 78",
|
||||
args{inputStr: "W7A/YV-102"},
|
||||
"W7A/YV-102", "",
|
||||
},
|
||||
{
|
||||
"Bad ref (long prefix)",
|
||||
args{inputStr: "xxxx/ON-001"},
|
||||
|
|
10
test/data/fle-7-issue-78.txt
Normal file
10
test/data/fle-7-issue-78.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
mycall wu7h
|
||||
mysota w7w/cw-064
|
||||
date 2022-03-12
|
||||
20m ssb
|
||||
1730 K7EEX w0c/fr-058
|
||||
35 kg7azy w7a/yv-102
|
||||
37 12m cw na6mg w6/ct-262
|
||||
45 20m ssb w6wss w6/sd-108
|
||||
46 2m fm k7jro
|
||||
1804 20m cw kr7rk w7a/cs-032
|
Loading…
Reference in a new issue