From a4186abc478e2297cf4778f8dd836ddb71a75f76 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 7 Mar 2016 14:58:51 +0200 Subject: [PATCH] [editor] Fixed config tests after switching from set to vector. --- editor/editor_tests/editor_config_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_tests/editor_config_test.cpp b/editor/editor_tests/editor_config_test.cpp index 7fbb92d920..329ea1488f 100644 --- a/editor/editor_tests/editor_config_test.cpp +++ b/editor/editor_tests/editor_config_test.cpp @@ -2,6 +2,8 @@ #include "editor/editor_config.hpp" +#include "base/stl_helpers.hpp" + #include "std/set.hpp" using namespace editor; @@ -38,6 +40,7 @@ UNIT_TEST(EditorConfig_TypeDescription) TEST(desc.IsAddressEditable(), ()); auto fields = poi; fields.push_back(EType::FMD_INTERNET); + my::SortUnique(fields); TEST_EQUAL(desc.GetEditableFields(), fields, ()); } { @@ -48,6 +51,7 @@ UNIT_TEST(EditorConfig_TypeDescription) TEST(desc.IsAddressEditable(), ()); auto fields = poi; fields.push_back(EType::FMD_OPERATOR); + my::SortUnique(fields); TEST_EQUAL(desc.GetEditableFields(), fields, ()); } // TODO(mgsergio): Test case with priority="high" when there is one on editor.config.