diff options
author | Yuri Gorshenin <y@maps.me> | 2016-03-18 01:43:14 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:56:51 +0300 |
commit | 8c4df9033ce9fcc62044900e11a6e9e934869bd4 (patch) | |
tree | b352fc14d49b06aebec2c6562495a972555de72f /base/base_tests | |
parent | fa8aa617d1d241284d5045deac5947ef4823813a (diff) |
[base] Fixed integral to string conversion.
Diffstat (limited to 'base/base_tests')
-rw-r--r-- | base/base_tests/string_utils_test.cpp | 3 |
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) |