[editor] Fixed config tests after switching from set to vector.

This commit is contained in:
Alex Zolotarev 2016-03-07 14:58:51 +02:00 committed by Sergey Yershov
parent 508ac2458f
commit a4186abc47

View file

@ -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.