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:
authorYuri Gorshenin <y@maps.me>2016-03-18 01:43:14 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:56:51 +0300
commit8c4df9033ce9fcc62044900e11a6e9e934869bd4 (patch)
treeb352fc14d49b06aebec2c6562495a972555de72f /base/base_tests
parentfa8aa617d1d241284d5045deac5947ef4823813a (diff)
[base] Fixed integral to string conversion.
Diffstat (limited to 'base/base_tests')
-rw-r--r--base/base_tests/string_utils_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/base_tests/string_utils_test.cpp b/base/base_tests/string_utils_test.cpp
index 3f6dc94418..55b256bacf 100644
--- a/base/base_tests/string_utils_test.cpp
+++ b/base/base_tests/string_utils_test.cpp
@@ -253,6 +253,9 @@ UNIT_TEST(to_string)
TEST_EQUAL(strings::to_string(123456789123456789ULL), "123456789123456789", ());
TEST_EQUAL(strings::to_string(-987654321987654321LL), "-987654321987654321", ());
+
+ uint64_t const n = numeric_limits<uint64_t>::max();
+ TEST_EQUAL(strings::to_string(n), "18446744073709551615", ());
}
UNIT_TEST(to_string_dac)