forked from organicmaps/organicmaps
[editor] Fixed config tests after switching from set to vector.
This commit is contained in:
parent
508ac2458f
commit
a4186abc47
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue