refactor: Make uint256_tests no longer use deprecated BOOST_CHECK()

This commit is contained in:
Hodlinator
2024-07-23 14:15:39 +02:00
parent f0eeee2dc1
commit f11f816800
3 changed files with 148 additions and 134 deletions

View File

@@ -79,6 +79,18 @@ const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr;
/** Random context to get unique temp data dirs. Separate from g_insecure_rand_ctx, which can be seeded from a const env var */
static FastRandomContext g_insecure_rand_ctx_temp_path;
std::ostream& operator<<(std::ostream& os, const arith_uint256& num)
{
os << ArithToUint256(num).ToString();
return os;
}
std::ostream& operator<<(std::ostream& os, const uint160& num)
{
os << num.ToString();
return os;
}
std::ostream& operator<<(std::ostream& os, const uint256& num)
{
os << num.ToString();