forked from organicmaps/organicmaps-tmp
[editor] Increase max editable building floors from 25 to 50
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
fcb670657c
commit
a540ccb4bf
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ struct LocalizedStreet
|
|||
class EditableMapObject : public MapObject
|
||||
{
|
||||
public:
|
||||
static uint8_t constexpr kMaximumLevelsEditableByUsers = 25;
|
||||
static uint8_t constexpr kMaximumLevelsEditableByUsers = 50;
|
||||
|
||||
bool IsNameEditable() const;
|
||||
bool IsAddressEditable() const;
|
||||
|
|
|
@ -77,7 +77,7 @@ UNIT_TEST(EditableMapObject_ValidateBuildingLevels)
|
|||
TEST(EditableMapObject::ValidateBuildingLevels("25"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("0"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("005"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("26"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels(std::to_string(EditableMapObject::kMaximumLevelsEditableByUsers + 1)), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("22a"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("a22"), ());
|
||||
TEST(!EditableMapObject::ValidateBuildingLevels("2a22"), ());
|
||||
|
|
Loading…
Add table
Reference in a new issue