v29.4-roots.4 · Commit 2: [PATCH 02/37] runtime: preserve shared operator controls
src/test/util_tests.cpp
Before: src/test/util_tests.cpp · After: src/test/util_tests.cpp
File metadata
index 4cacbd1151f040d9eac688675020bcc911a0143b..54580950b80398223409bce05dc8d47d397b29c8 100644
Download original patch · Release notes
Diff rows 1–8 of 8. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/test/util_tests.cpp
CHANGED
|
@@ -1962,8 +1962,6 @@ BOOST_AUTO_TEST_CASE(mib_string_literal_test)
|
|
| 1962 |
{
|
| 1963 |
BOOST_CHECK_EQUAL(0_MiB, 0);
|
| 1964 |
BOOST_CHECK_EQUAL(1_MiB, 1024 * 1024);
|
| 1965 |
-
const auto max_mib{std::numeric_limits<size_t>::max() >> 20};
|
| 1966 |
-
BOOST_CHECK_EXCEPTION(operator""_MiB(static_cast<unsigned long long>(max_mib) + 1), std::overflow_error, HasReason("MiB value too large for size_t byte conversion"));
|
| 1967 |
}
|
| 1968 |
|
| 1969 |
BOOST_AUTO_TEST_SUITE_END()
|
|
|
|
| 1962 |
{
|
| 1963 |
BOOST_CHECK_EQUAL(0_MiB, 0);
|
| 1964 |
BOOST_CHECK_EQUAL(1_MiB, 1024 * 1024);
|
|
|
|
|
|
|
| 1965 |
}
|
| 1966 |
|
| 1967 |
BOOST_AUTO_TEST_SUITE_END()
|