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-08-17 13:16:27 +0300
committerArsentiy Milchakov <a.milchakov@corp.mail.ru>2016-08-17 13:16:27 +0300
commit3827b9871217ce4029e893eb178650cd71a03e78 (patch)
tree5dcdddd2bfe84e7c57163465b010d11b5e295e08 /indexer/indexer_tests
parent8add28eba33004c47bed783e0ce54a8c5501b6a8 (diff)
website validation corrections
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/editable_map_object_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indexer/indexer_tests/editable_map_object_test.cpp b/indexer/indexer_tests/editable_map_object_test.cpp
index c9db74a865..7df4730871 100644
--- a/indexer/indexer_tests/editable_map_object_test.cpp
+++ b/indexer/indexer_tests/editable_map_object_test.cpp
@@ -100,13 +100,18 @@ UNIT_TEST(EditableMapObject_ValidateWebsite)
{
TEST(EditableMapObject::ValidateWebsite(""), ());
TEST(EditableMapObject::ValidateWebsite("qwe.rty"), ());
+ TEST(EditableMapObject::ValidateWebsite("http://websit.e"), ());
+ TEST(EditableMapObject::ValidateWebsite("https://websit.e"), ());
TEST(!EditableMapObject::ValidateWebsite("qwerty"), ());
TEST(!EditableMapObject::ValidateWebsite(".qwerty"), ());
TEST(!EditableMapObject::ValidateWebsite("qwerty."), ());
TEST(!EditableMapObject::ValidateWebsite(".qwerty."), ());
- TEST(!EditableMapObject::ValidateWebsite(".qwerty."), ());
TEST(!EditableMapObject::ValidateWebsite("w..com"), ());
+ TEST(!EditableMapObject::ValidateWebsite("http://.websit.e"), ());
+ TEST(!EditableMapObject::ValidateWebsite("https://.websit.e"), ());
+ TEST(!EditableMapObject::ValidateWebsite("http://"), ());
+ TEST(!EditableMapObject::ValidateWebsite("https://"), ());
}
UNIT_TEST(EditableMapObject_ValidateEmail)