Skip to content

v0.2.54..v0.2.55 changeset HighwaySnapMergerTest.cpp

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core-test/src/test/cpp/hoot/core/conflate/highway/HighwaySnapMergerTest.cpp b/hoot-core-test/src/test/cpp/hoot/core/conflate/highway/HighwaySnapMergerTest.cpp
index 4d708ca..4882f0e 100644
--- a/hoot-core-test/src/test/cpp/hoot/core/conflate/highway/HighwaySnapMergerTest.cpp
+++ b/hoot-core-test/src/test/cpp/hoot/core/conflate/highway/HighwaySnapMergerTest.cpp
@@ -50,6 +50,8 @@
 #include <hoot/core/util/Log.h>
 #include <hoot/core/util/MapProjector.h>
 #include <hoot/core/io/OsmJsonReader.h>
+#include <hoot/core/visitors/RemoveTagsVisitor.h>
+
 
 // Tgs
 #include <tgs/StreamUtils.h>
@@ -128,6 +130,9 @@ public:
     vector<pair<ElementId, ElementId>> replaced;
     merger.apply(map, replaced);
 
+    RemoveTagsVisitor hashRemover(QStringList(MetadataTags::HootHash()));
+    map->visitRw(hashRemover);
+
     ElementConverter ec(map);
     HOOT_STR_EQUALS("[2]{(Way(-1), Way(-5)), (Way(-2), Way(-7))}", replaced);
     HOOT_STR_EQUALS("LINESTRING (50.0000000000000000 0.0000000000000000, 100.0000000000000000 0.0000000000000000)",
@@ -195,6 +200,9 @@ public:
     vector<pair<ElementId, ElementId>> replaced;
     merger.apply(map, replaced);
 
+    RemoveTagsVisitor hashRemover(QStringList(MetadataTags::HootHash()));
+    map->visitRw(hashRemover);
+
     HOOT_STR_EQUALS(0, replaced.size());
     HOOT_STR_EQUALS(1, map->getWays().size());
     HOOT_STR_EQUALS("way(-1)\n"
@@ -354,6 +362,9 @@ public:
     vector<pair<ElementId, ElementId>> replaced;
     merger.apply(map, replaced);
 
+    RemoveTagsVisitor hashRemover(QStringList(MetadataTags::HootHash()));
+    map->visitRw(hashRemover);
+
     const QString testFileName = "runTagsSplitTest.json";
     OsmJsonWriter writer;
     writer.setIncludeCompatibilityTags(false);
Clone this wiki locally