Skip to content

v0.2.52..v0.2.53 changeset GraphComparatorTest.cpp

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core-test/src/test/cpp/hoot/core/scoring/GraphComparatorTest.cpp b/hoot-core-test/src/test/cpp/hoot/core/scoring/GraphComparatorTest.cpp
index 676dea8..497ca41 100644
--- a/hoot-core-test/src/test/cpp/hoot/core/scoring/GraphComparatorTest.cpp
+++ b/hoot-core-test/src/test/cpp/hoot/core/scoring/GraphComparatorTest.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2012, 2013, 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 
@@ -68,37 +68,37 @@ public:
 
   void runTest()
   {
-      OsmXmlReader reader;
-
-      OsmMapPtr map(new OsmMap());
-      reader.read(_inputPath + "ToyTestA.osm", map);
-
-      OsmMapPtr map2(new OsmMap());
-      reader.read(_inputPath + "ToyTestB.osm", map2);
-
-      const WayMap& w1 = map->getWays();
-      for (WayMap::const_iterator it = w1.begin(); it != w1.end(); ++it)
-      {
-        WayPtr w = map->getWay(it->second->getId());
-        w->setTag("highway", "road");
-      }
-
-      const WayMap& w2 = map2->getWays();
-      for (WayMap::const_iterator it = w2.begin(); it != w2.end(); ++it)
-      {
-        WayPtr w = map2->getWay(it->second->getId());
-        w->setTag("highway", "road");
-      }
-
-      GraphComparator uut(map, map2);
-      uut.setIterations(3);
-      uut.setMaxThreads(2);
-      uut.setPixelSize(10);
-      uut.compareMaps();
-      CPPUNIT_ASSERT_DOUBLES_EQUAL(0.973744272810634, uut.getMeanScore(), 0.00001);
-      CPPUNIT_ASSERT_DOUBLES_EQUAL(0.00177888445763033, uut.getConfidenceInterval(), 0.00001);
-      CPPUNIT_ASSERT_DOUBLES_EQUAL(0.973924616144161, uut.getMedianScore(), 0.00001);
-      CPPUNIT_ASSERT_DOUBLES_EQUAL(0.00187302021970233, uut.getStandardDeviation(), 0.00001);
+    OsmXmlReader reader;
+
+    OsmMapPtr map(new OsmMap());
+    reader.read(_inputPath + "ToyTestA.osm", map);
+
+    OsmMapPtr map2(new OsmMap());
+    reader.read(_inputPath + "ToyTestB.osm", map2);
+
+    const WayMap& w1 = map->getWays();
+    for (WayMap::const_iterator it = w1.begin(); it != w1.end(); ++it)
+    {
+      WayPtr w = map->getWay(it->second->getId());
+      w->setTag("highway", "road");
+    }
+
+    const WayMap& w2 = map2->getWays();
+    for (WayMap::const_iterator it = w2.begin(); it != w2.end(); ++it)
+    {
+      WayPtr w = map2->getWay(it->second->getId());
+      w->setTag("highway", "road");
+    }
+
+    GraphComparator uut(map, map2);
+    uut.setIterations(3);
+    uut.setMaxThreads(2);
+    uut.setPixelSize(10);
+    uut.compareMaps();
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.973744272810634, uut.getMeanScore(), 0.00001);
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.00177888445763033, uut.getConfidenceInterval(), 0.00001);
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.973924616144161, uut.getMedianScore(), 0.00001);
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(0.00187302021970233, uut.getStandardDeviation(), 0.00001);
   }
 };
 
Clone this wiki locally