From d641b8dc2edb29a12fdb1e58217dcd9daa88fbac Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Tue, 12 Mar 2024 14:33:55 +0400 Subject: [PATCH] [bookmarks] [tests] fix bug when `Bookmarks_SpecialXMLNames` is working with unsorted IDs list Signed-off-by: Kiryl Kaveryn --- map/map_tests/bookmarks_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/map/map_tests/bookmarks_test.cpp b/map/map_tests/bookmarks_test.cpp index 747e66d858..6287489ff0 100644 --- a/map/map_tests/bookmarks_test.cpp +++ b/map/map_tests/bookmarks_test.cpp @@ -1034,7 +1034,7 @@ UNIT_CLASS_TEST(Runner, Bookmarks_SpecialXMLNames) LoadKmlData(MemReader(kmlString3, strlen(kmlString3)), KmlFileType::Text)); bmManager.CreateCategories(std::move(kmlDataCollection1)); - auto const & groupIds = bmManager.GetUnsortedBmGroupsIdList(); + auto const & groupIds = bmManager.GetSortedBmGroupIdList(); TEST_EQUAL(groupIds.size(), 1, ()); auto const catId = groupIds.front(); @@ -1067,8 +1067,8 @@ UNIT_CLASS_TEST(Runner, Bookmarks_SpecialXMLNames) bmManager.CreateCategories(std::move(kmlDataCollection3)); TEST_EQUAL(bmManager.GetBmGroupsCount(), 2, ()); - auto const catId2 = bmManager.GetUnsortedBmGroupsIdList().back(); - auto const catId3 = bmManager.GetUnsortedBmGroupsIdList().front(); + auto const catId2 = bmManager.GetSortedBmGroupIdList().back(); + auto const catId3 = bmManager.GetSortedBmGroupIdList().front(); TEST_EQUAL(bmManager.GetUserMarkIds(catId2).size(), 1, ()); TEST_EQUAL(bmManager.GetCategoryName(catId2), expectedName, ());