- Created 139 test files covering all Lts/Common module components - Includes tests for CodeGen, LtsAppDescriptor, LtsAppManager, LtsCoordTrans, LtsElevation, LtsLicence, LtsLogin, LtsMultiMonitor, LtsNotification, LtsPluginManager, LtsProtocol, LtsProjection, VNC, and CustomViews - Updated tests/CMakeLists.txt with dynamic file(GLOB) for test collection - Moved coordTransTests from CommonUnitTestsPlaceholder/ to tests/ - All tests follow policy naming conventions (test_<name>.cpp) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20 lines
408 B
C++
20 lines
408 B
C++
#include "mocks/MockCoordTrans.h"
|
|
|
|
#include <QtTest/QtTest>
|
|
|
|
class CoordTransSmoke : public QObject
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
|
|
void testForward()
|
|
{
|
|
auto p = MockCoordTrans::forward(10.0, 20.0);
|
|
QVERIFY(qFuzzyCompare(p.first, 10.0 * 111000.0));
|
|
QVERIFY(qFuzzyCompare(p.second, 20.0 * 111000.0));
|
|
}
|
|
};
|
|
|
|
QTEST_MAIN(CoordTransSmoke)
|
|
#include "coordTransTests_smoke.moc"
|