Documentation + some little improvements
[situare] / tests / testmap / testmapengine / testmapengine.cpp
index d34dc98..9283089 100644 (file)
@@ -10,15 +10,17 @@ private slots:
     void setViewLocation();
 };
 
+/// \brief Test converting tile numbers to scene coordinates
+/// Also uses different zoom levels
 void TestMapEngine::convertTileNumberToSceneCoordinate()
 {
-    MapEngine mapEngine;
-
-    QCOMPARE(mapEngine.convertTileNumberToSceneCoordinate(18, QPoint(0,0)), QPoint(0,0));
-    QCOMPARE(mapEngine.convertTileNumberToSceneCoordinate(18, QPoint(1,2)), QPoint(256,512));
-    QCOMPARE(mapEngine.convertTileNumberToSceneCoordinate(16, QPoint(3,4)), QPoint(3072,4096));
+    QCOMPARE(MapEngine::convertTileNumberToSceneCoordinate(18, QPoint(0,0)), QPoint(0,0));
+    QCOMPARE(MapEngine::convertTileNumberToSceneCoordinate(18, QPoint(1,2)), QPoint(256,512));
+    QCOMPARE(MapEngine::convertTileNumberToSceneCoordinate(16, QPoint(3,4)), QPoint(3072,4096));
 }
 
+/// \brief Doesn't actually test anything.
+/// \todo Actual test should be added when there is something to be tested
 void TestMapEngine::setViewLocation()
 {
     MapView mapView;