Skip to content

Commit

Permalink
Reproduce issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmMeessen committed Mar 15, 2022
1 parent 43f26ed commit ad8b7f9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fleprocess/parse_line_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},
Expand Down
5 changes: 5 additions & 0 deletions fleprocess/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
10 changes: 10 additions & 0 deletions test/data/fle-7-issue-78.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ad8b7f9

Please sign in to comment.