mirror of
https://github.com/on4kjm/FLEcli.git
synced 2025-01-18 13:01:09 +01:00
Add test
This commit is contained in:
parent
da537ea85e
commit
3b00a19f77
2 changed files with 15 additions and 0 deletions
|
@ -491,6 +491,11 @@ func TestLoadFile_redefining_mySOTA(t *testing.T) {
|
|||
t.Errorf("Not the expected MySOTA value: %s (expecting %s)", loadedLogFile[0].MySOTA, expectedValue)
|
||||
}
|
||||
|
||||
expectedValue = "ON/ON-111"
|
||||
if loadedLogFile[1].MySOTA != expectedValue {
|
||||
t.Errorf("Not the expected MySOTA value: %s (expecting %s)", loadedLogFile[0].MySOTA, expectedValue)
|
||||
}
|
||||
|
||||
//Clean Up
|
||||
os.Remove(temporaryDataFileName)
|
||||
}
|
||||
|
|
10
test/data/multi-SOTA-summits.adi
Normal file
10
test/data/multi-SOTA-summits.adi
Normal file
|
@ -0,0 +1,10 @@
|
|||
ADIF Export for Fast Log Entry by DF3CB
|
||||
<PROGRAMID:3>FLE
|
||||
<ADIF_VER:5>3.1.0
|
||||
<EOH>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MW0ABC <QSO_DATE:8>20160424 <TIME_ON:4>1000 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-001 <EOR>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MW0ABD <QSO_DATE:8>20160424 <TIME_ON:4>1001 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-001 <EOR>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MM0ABE <QSO_DATE:8>20160424 <TIME_ON:4>1200 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-002 <EOR>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MM0ABF <QSO_DATE:8>20160424 <TIME_ON:4>1201 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-002 <EOR>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MI0ABG <QSO_DATE:8>20160424 <TIME_ON:4>1400 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-003 <EOR>
|
||||
<STATION_CALLSIGN:8>MW0PJE/P <CALL:6>MI0ABH <QSO_DATE:8>20160424 <TIME_ON:4>1401 <BAND:2>2m <MODE:2>FM <RST_SENT:2>59 <RST_RCVD:2>59 <MY_SOTA_REF:9>GW/NW-003 <EOR>
|
Loading…
Reference in a new issue