diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-02-12 23:01:45 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-14 12:23:01 -0700 |
commit | d056df033a1e88554f7cc39dd709a87b17cb49df (patch) | |
tree | 263b622b86b99015913624e20b40fc317777c3c7 /src/test/blockchain_tests.cpp | |
parent | 58c72880ff70807cf622cdebf1d6273f4041bd2e (diff) |
Replace std::to_string with locale-independent alternative
Diffstat (limited to 'src/test/blockchain_tests.cpp')
-rw-r--r-- | src/test/blockchain_tests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/blockchain_tests.cpp b/src/test/blockchain_tests.cpp index 3b4c480f72..aa704642bf 100644 --- a/src/test/blockchain_tests.cpp +++ b/src/test/blockchain_tests.cpp @@ -8,6 +8,7 @@ #include <chain.h> #include <rpc/blockchain.h> +#include <util/string.h> #include <test/util/setup_common.h> /* Equality between doubles is imprecise. Comparison should be done @@ -30,8 +31,8 @@ static CBlockIndex* CreateBlockIndexWithNbits(uint32_t nbits) static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) { BOOST_CHECK_MESSAGE( DoubleEquals(difficulty, expected_difficulty, 0.00001), - "Difficulty was " + std::to_string(difficulty) - + " but was expected to be " + std::to_string(expected_difficulty)); + "Difficulty was " + ToString(difficulty) + + " but was expected to be " + ToString(expected_difficulty)); } /* Given a BlockIndex with the provided nbits, |