diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2010-12-29 02:55:36 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:08:57 +0300 |
commit | 06deb7a6b76d600bc9c960652417993b9e589ad5 (patch) | |
tree | 4138e6a25b0576f23b232617add57288a3f3c5e0 /geometry/geometry_tests/cellid_test.cpp | |
parent | 0ac036f21605040627fea31dc69d9001694b8a2e (diff) |
Refactored storage engine
Diffstat (limited to 'geometry/geometry_tests/cellid_test.cpp')
-rw-r--r-- | geometry/geometry_tests/cellid_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/geometry/geometry_tests/cellid_test.cpp b/geometry/geometry_tests/cellid_test.cpp index 7580d8d9b2..6753121c90 100644 --- a/geometry/geometry_tests/cellid_test.cpp +++ b/geometry/geometry_tests/cellid_test.cpp @@ -175,3 +175,13 @@ UNIT_TEST(CellID_LessStackOrder) TEST_EQUAL(tst, exp, ()); } while (next_permutation(e.begin(), e.end())); } + +UNIT_TEST(CellID_IsStringValid) +{ + typedef m2::CellId<9> TId; + TEST( TId::IsCellId("0123132"), () ); + TEST( !TId::IsCellId(""), () ); + TEST( !TId::IsCellId("-1332"), () ); + TEST( !TId::IsCellId("023."), () ); + TEST( !TId::IsCellId("121832"), () ); +} |