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 <a.milchakov@corp.mail.ru>2016-07-04 19:15:23 +0300
committerArsentiy Milchakov <a.milchakov@corp.mail.ru>2016-07-04 19:15:23 +0300
commit381db9f24d2028fcbc9d86ad13608616801c2cf8 (patch)
treeb0df46a21d759b0fa07677106e145b38f697f35d /indexer/indexer_tests
parent5015a517216a2e8504b05c2ba2e745d44d3606c1 (diff)
double dots in website name is not allowed
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/editable_map_object_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/indexer_tests/editable_map_object_test.cpp b/indexer/indexer_tests/editable_map_object_test.cpp
index aea2186bd1..059db03572 100644
--- a/indexer/indexer_tests/editable_map_object_test.cpp
+++ b/indexer/indexer_tests/editable_map_object_test.cpp
@@ -100,6 +100,8 @@ UNIT_TEST(EditableMapObject_ValidateWebsite)
TEST(!EditableMapObject::ValidateWebsite(".qwerty"), ());
TEST(!EditableMapObject::ValidateWebsite("qwerty."), ());
TEST(!EditableMapObject::ValidateWebsite(".qwerty."), ());
+ TEST(!EditableMapObject::ValidateWebsite(".qwerty."), ());
+ TEST(!EditableMapObject::ValidateWebsite("w..com"), ());
}
UNIT_TEST(EditableMapObject_ValidateEmail)
@@ -109,7 +111,7 @@ UNIT_TEST(EditableMapObject_ValidateEmail)
TEST(EditableMapObject::ValidateEmail("e@ma.i.l"), ());
TEST(EditableMapObject::ValidateEmail("e-m.ail@dot.com.gov"), ());
TEST(EditableMapObject::ValidateEmail("#$%&'*+-/=?^`_{}|~.@dot.qw.com.gov"), ());
-
+
TEST(!EditableMapObject::ValidateEmail("e.ma.il"), ());
TEST(!EditableMapObject::ValidateEmail("e@ma@il"), ());
TEST(!EditableMapObject::ValidateEmail("e@ma@i.l"), ());