Commit be2a388b authored by Jessica's avatar Jessica

Added a setAirframe test. Took the code from getAirframe test and made another test.

parent 67e14c3d
...@@ -175,11 +175,13 @@ void UASUnitTest::getAirframe_test() ...@@ -175,11 +175,13 @@ void UASUnitTest::getAirframe_test()
{ {
//when uas is constructed, airframe is set to QGC_AIRFRAME_GENERIC which is 0 //when uas is constructed, airframe is set to QGC_AIRFRAME_GENERIC which is 0
QCOMPARE(uas->getAirframe(), 0); QCOMPARE(uas->getAirframe(), 0);
}
void UASUnitTest::setAirframe_test()
{
uas->setAirframe(25); uas->setAirframe(25);
QVERIFY(uas->getAirframe() == 25); QVERIFY(uas->getAirframe() == 25);
} }
void UASUnitTest::getWaypointList_test() void UASUnitTest::getWaypointList_test()
{ {
QVector<Waypoint*> kk = uas->getWaypointManager()->getWaypointEditableList(); QVector<Waypoint*> kk = uas->getWaypointManager()->getWaypointEditableList();
......
...@@ -49,6 +49,7 @@ private slots: ...@@ -49,6 +49,7 @@ private slots:
void getSelected_test(); void getSelected_test();
void getSystemType_test(); void getSystemType_test();
void getAirframe_test(); void getAirframe_test();
void setAirframe_test();
void getWaypointList_test(); void getWaypointList_test();
void signalWayPoint_test(); void signalWayPoint_test();
void getWaypoint_test(); void getWaypoint_test();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment