• R/O
  • SSH
  • HTTPS

iutest: Commit


Commit MetaInfo

Revision1349 (tree)
Time2018-10-08 23:33:38
Authorsrz_zumix

Log Message

Merge remote-tracking branch 'origin/develop'

git@1241a10f975dfe2ae2451099f900239c34c159f2
https://github.com/srz-zumix/iutest/commit/1241a10f975dfe2ae2451099f900239c34c159f2

Change Summary

Incremental Difference

--- trunk/include/internal/iutest_string.hpp (revision 1348)
+++ trunk/include/internal/iutest_string.hpp (revision 1349)
@@ -366,7 +366,7 @@
366366 const size_t suffixes_length = IUTEST_PP_COUNTOF(suffixes);
367367 size_t index = 0;
368368 double view_value = static_cast<double>(value);
369- while(view_value >= 1024 && index < suffixes_length)
369+ while(view_value >= 1024 && index + 1 < suffixes_length)
370370 {
371371 ++index;
372372 view_value /= 1024;
--- trunk/test/unit_tests.cpp (revision 1348)
+++ trunk/test/unit_tests.cpp (revision 1349)
@@ -209,6 +209,7 @@
209209 IUTEST_EXPECT_STREQ("1.9MB", ::iutest::detail::FormatSizeByte(2 * 1024 * 1024 - 1));
210210 IUTEST_EXPECT_STREQ("1GB", ::iutest::detail::FormatSizeByte(1024 * 1024 * 1024));
211211 IUTEST_EXPECT_STREQ("1TB", ::iutest::detail::FormatSizeByte(1024ull * 1024 * 1024 * 1024));
212+ IUTEST_EXPECT_STREQ("1024TB", ::iutest::detail::FormatSizeByte(1024ull * 1024 * 1024 * 1024 * 1024));
212213 }
213214
214215 IUTEST(UnitTest, EmptyAny)
Show on old repository browser