Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-11-23 17:20:31 +0300
committermgsergio <mgsergio@yandex.ru>2017-11-23 17:21:36 +0300
commit9d8432c63d89546ffc74bd6b79362656c1dd99ca (patch)
treed6f9ef995b17447f2e44d7000fa28753109ce728 /indexer/indexer_tests
parent0e3a0465557f484e617e30142c76f82089c9d373 (diff)
[editor] review fixes
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/editable_map_object_test.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/indexer_tests/editable_map_object_test.cpp b/indexer/indexer_tests/editable_map_object_test.cpp
index 1400a485b6..be61b1772e 100644
--- a/indexer/indexer_tests/editable_map_object_test.cpp
+++ b/indexer/indexer_tests/editable_map_object_test.cpp
@@ -139,6 +139,13 @@ UNIT_TEST(EditableMapObject_ValidatePhoneList)
TEST(!EditableMapObject::ValidatePhoneList(";"), ());
TEST(!EditableMapObject::ValidatePhoneList(","), ());
TEST(!EditableMapObject::ValidatePhoneList(";;;;;;"), ());
+
+ // Now it is possible to specify the following incorrect phone numbers.
+ // TODO: replace current implementation of ValidatePhoneList by a correct one.
+ TEST(EditableMapObject::ValidatePhoneList("7+ 10 10"), ());
+ TEST(EditableMapObject::ValidatePhoneList("+7 )10( 10"), ());
+ TEST(EditableMapObject::ValidatePhoneList("+7 )10 10"), ());
+ TEST(EditableMapObject::ValidatePhoneList("+7 10 (---) 10"), ());
}
UNIT_TEST(EditableMapObject_ValidateWebsite)