-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.52..v0.2.53 changeset OsmApiChangesetTest.cpp
Garret Voltz edited this page Feb 12, 2020
·
1 revision
diff --git a/hoot-core-test/src/test/cpp/hoot/core/io/OsmApiChangesetTest.cpp b/hoot-core-test/src/test/cpp/hoot/core/io/OsmApiChangesetTest.cpp
index 03bce31..cf4bebb 100644
--- a/hoot-core-test/src/test/cpp/hoot/core/io/OsmApiChangesetTest.cpp
+++ b/hoot-core-test/src/test/cpp/hoot/core/io/OsmApiChangesetTest.cpp
@@ -294,7 +294,6 @@ public:
for (int i = 0; i < (int)ids.size(); ++i)
CPPUNIT_ASSERT_EQUAL(expected_ids[i], ids[i]);
-
// Test relation failure with empty string
id = 0;
id2 = 0;
@@ -305,6 +304,11 @@ public:
CPPUNIT_ASSERT_EQUAL(0L, id);
CPPUNIT_ASSERT_EQUAL(0L, id2);
CPPUNIT_ASSERT_EQUAL(ElementType::Unknown, type);
+
+ // Test changeset closed
+ hint = "Changeset conflict: The changeset 49514404 was closed at 2020-01-23 20:11:10 UTC";
+ found = changeset.matchesChangesetClosedFailure(hint);
+ CPPUNIT_ASSERT_EQUAL(true, found);
}
void runXmlChangesetSplitDeleteTest()