mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Unit test for callsign list
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "blackmisc/avinformationmessage.h"
|
||||
#include "blackmisc/avaircraftsituation.h"
|
||||
#include "blackmisc/avaircrafticao.h"
|
||||
#include "blackmisc/avcallsign.h"
|
||||
#include "blackmisc/avcallsignlist.h"
|
||||
#include "blackmisc/aviocomsystem.h"
|
||||
#include "blackmisc/avionavsystem.h"
|
||||
#include "blackmisc/aviotransponder.h"
|
||||
@@ -103,6 +103,13 @@ namespace BlackMiscTest
|
||||
CCallsign cs3("EDDmapp");
|
||||
QVERIFY2(cs1 == cs2, "Callsigns shall be equal");
|
||||
QVERIFY2(cs1 != cs3, "Callsigns shall not be equal");
|
||||
|
||||
CCallsignList list;
|
||||
list.push_back(cs1);
|
||||
QVERIFY2(list.size() == 1, "List shall be 1");
|
||||
list.remove(cs1);
|
||||
QVERIFY2(cs1 == cs1, "Callsign is the same, shall be equal");
|
||||
QVERIFY2(list.size() == 0, "List shall be 0 after removal");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "blackmisc/avatcstation.h"
|
||||
#include "testvariantandmap.h"
|
||||
#include "blackmisc/avatcstation.h"
|
||||
#include "blackmisc/valuemap.h"
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user