Commit 7058f175 authored by DonLakeFlyer's avatar DonLakeFlyer

Fix off by 1

parent 65800bfd
......@@ -138,12 +138,12 @@ void CorridorScanComplexItemTest::_testItemCount(void)
_corridorItem->cameraTriggerInTurnAround()->setRawValue(false);
_corridorItem->appendMissionItems(items, this);
QCOMPARE(items.count(), _corridorItem->lastSequenceNumber());
QCOMPARE(items.count() - 1, _corridorItem->lastSequenceNumber());
items.clear();
_corridorItem->cameraTriggerInTurnAround()->setRawValue(true);
_corridorItem->appendMissionItems(items, this);
QCOMPARE(items.count(), _corridorItem->lastSequenceNumber());
QCOMPARE(items.count() - 1, _corridorItem->lastSequenceNumber());
items.clear();
}
......
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