mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 17:10:46 +00:00
Debug the testFromRawSizeMismatch test in CI
This commit is contained in:
@@ -117,6 +117,7 @@ struct base_uint_test : beast::unit_test::Suite
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef NDEBUG
|
||||
void
|
||||
testFromRawSizeMismatch()
|
||||
{
|
||||
@@ -128,7 +129,8 @@ struct base_uint_test : beast::unit_test::Suite
|
||||
{
|
||||
Blob const tooSmall{1, 2, 3, 4, 5, 6, 7, 8};
|
||||
test96 const result = test96::fromRaw(tooSmall);
|
||||
BEAST_EXPECT(to_string(result) == "010203040506070800000000");
|
||||
auto const resultText = to_string(result);
|
||||
BEAST_EXPECTS(resultText == "010203040506070800000000", resultText);
|
||||
}
|
||||
|
||||
// Container larger than the base_uint (16 bytes vs 12 bytes for
|
||||
@@ -137,9 +139,11 @@ struct base_uint_test : beast::unit_test::Suite
|
||||
{
|
||||
Blob const tooBig{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
|
||||
test96 const result = test96::fromRaw(tooBig);
|
||||
BEAST_EXPECT(to_string(result) == "0102030405060708090A0B0C");
|
||||
auto const resultText = to_string(result);
|
||||
BEAST_EXPECTS(resultText == "0102030405060708090A0B0C", resultText);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
run() override
|
||||
|
||||
Reference in New Issue
Block a user