Commit 5212b985 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use QLatin1String and QCOMPARE for raw string tests

parent 0823d5a7
......@@ -91,10 +91,10 @@ void TestFeatureDetach::testContainer()
GeoDataContainer cont2 = cont1;
cont2.child(0)->setName("Feat2");
QVERIFY(cont1.child(0)->name() == "Feat1");
QCOMPARE(cont1.child(0)->name(), QLatin1String("Feat1"));
const GeoDataContainer cont3 = cont1;
QVERIFY(cont3.child(0)->name() == "Feat1");
QCOMPARE(cont3.child(0)->name(), QLatin1String("Feat1"));
}
void TestFeatureDetach::testPlacemark()
......@@ -123,10 +123,10 @@ void TestFeatureDetach::testTour()
GeoDataTour tour2 = tour1;
tour2.playlist()->setId("Playlist2");
QVERIFY(tour1.playlist()->id() == "Playlist1");
QCOMPARE(tour1.playlist()->id(), QLatin1String("Playlist1"));
const GeoDataTour tour3 = tour1;
QVERIFY(tour3.playlist()->id() == "Playlist1");
QCOMPARE(tour3.playlist()->id(), QLatin1String("Playlist1"));
}
void TestFeatureDetach::testGeometryParentInPlacemark()
......
......@@ -681,7 +681,7 @@ void TestGeoDataCopy::copyStyleMap()
styleMap["poland"] = "pst3";
styleMap.setLastKey("poland");
QVERIFY( styleMap.lastKey() == QString("poland") );
QCOMPARE(styleMap.lastKey(), QLatin1String("poland"));
GeoDataStyleMap testMap = styleMap;
......@@ -692,8 +692,8 @@ void TestGeoDataCopy::copyStyleMap()
testMap.insert("Romania", "rst3");
testMap.setLastKey("Romania");
QVERIFY( testMap.lastKey() == QString("Romania") );
QVERIFY( styleMap.lastKey() == QString("poland") );
QCOMPARE(testMap.lastKey(), QLatin1String("Romania"));
QCOMPARE(styleMap.lastKey(), QLatin1String("poland"));
}
}
......
Supports Markdown
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