From 795ae120913d7e3d5b1c8f996073198b54ac2405 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 7 Sep 2018 15:51:01 +0300 Subject: [PATCH] Tests on std::string DebugPrint(GeoObjectId const & id); --- base/base_tests/geo_object_id_tests.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base/base_tests/geo_object_id_tests.cpp b/base/base_tests/geo_object_id_tests.cpp index 9addea3995..17e04145a7 100644 --- a/base/base_tests/geo_object_id_tests.cpp +++ b/base/base_tests/geo_object_id_tests.cpp @@ -41,4 +41,13 @@ UNIT_TEST(GeoObjectId) TEST_EQUAL(fias.GetType(), GeoObjectId::Type::Fias, ()); TEST_EQUAL(DebugPrint(fias), "FIAS 61861", ()); } + +UNIT_TEST(GeoObjectId_DebugPrint) +{ + GeoObjectId const invalid; + TEST_EQUAL(DebugPrint(invalid), "Invalid 0", ()); + + GeoObjectId const valid(GeoObjectId::Type::OsmWay, 123); + TEST_EQUAL(DebugPrint(valid), "Osm Way 123", ()); +} } // namespace base