0diff --git a/src/test/uint256_tests.cpp b/src/test/uint256_tests.cpp
1--- a/src/test/uint256_tests.cpp (revision bfcc016825d8febf366a6b5eec5ed193c2c313bc)
2+++ b/src/test/uint256_tests.cpp (date 1721726677844)
3@@ -169,11 +169,11 @@
4 TmpL.SetHex(ZeroL.ToString()); BOOST_CHECK_EQUAL(TmpL, uint256());
5
6 TmpL.SetHex(R1L.ToString());
7- BOOST_CHECK_EQUAL(memcmp(R1L.begin(), R1Array, 32), 0);
8- BOOST_CHECK_EQUAL(memcmp(TmpL.begin(), R1Array, 32), 0);
9- BOOST_CHECK_EQUAL(memcmp(R2L.begin(), R2Array, 32), 0);
10- BOOST_CHECK_EQUAL(memcmp(ZeroL.begin(), ZeroArray, 32), 0);
11- BOOST_CHECK_EQUAL(memcmp(OneL.begin(), OneArray, 32), 0);
12+ BOOST_CHECK_EQUAL_COLLECTIONS(R1L.begin(), R1L.end(), R1Array, R1Array + R1L.size());
13+ BOOST_CHECK_EQUAL_COLLECTIONS(TmpL.begin(), TmpL.end(), R1Array, R1Array + TmpL.size());
14+ BOOST_CHECK_EQUAL_COLLECTIONS(R2L.begin(), R2L.end(), R2Array, R2Array + R2L.size());
15+ BOOST_CHECK_EQUAL_COLLECTIONS(ZeroL.begin(), ZeroL.end(), ZeroArray, ZeroArray + ZeroL.size());
16+ BOOST_CHECK_EQUAL_COLLECTIONS(OneL.begin(), OneL.end(), OneArray, OneArray + OneL.size());
17 BOOST_CHECK_EQUAL(R1L.size(), sizeof(R1L));
18 BOOST_CHECK_EQUAL(sizeof(R1L), 32);
19 BOOST_CHECK_EQUAL(R1L.size(), 32);
20@@ -215,11 +215,11 @@
21 TmpS.SetHex(ZeroS.ToString()); BOOST_CHECK_EQUAL(TmpS, uint160());
22
23 TmpS.SetHex(R1S.ToString());
24- BOOST_CHECK_EQUAL(memcmp(R1S.begin(), R1Array, 20), 0);
25- BOOST_CHECK_EQUAL(memcmp(TmpS.begin(), R1Array, 20), 0);
26- BOOST_CHECK_EQUAL(memcmp(R2S.begin(), R2Array, 20), 0);
27- BOOST_CHECK_EQUAL(memcmp(ZeroS.begin(), ZeroArray, 20), 0);
28- BOOST_CHECK_EQUAL(memcmp(OneS.begin(), OneArray, 20), 0);
29+ BOOST_CHECK_EQUAL_COLLECTIONS(R1S.begin(), R1S.end(), R1Array, R1Array + R1S.size());
30+ BOOST_CHECK_EQUAL_COLLECTIONS(TmpS.begin(), TmpS.end(), R1Array, R1Array + TmpS.size());
31+ BOOST_CHECK_EQUAL_COLLECTIONS(R2S.begin(), R2S.end(), R2Array, R2Array + R2S.size());
32+ BOOST_CHECK_EQUAL_COLLECTIONS(ZeroS.begin(), ZeroS.end(), ZeroArray, ZeroArray + ZeroS.size());
33+ BOOST_CHECK_EQUAL_COLLECTIONS(OneS.begin(), OneS.end(), OneArray, OneArray + OneS.size());
34 BOOST_CHECK_EQUAL(R1S.size(), sizeof(R1S));
35 BOOST_CHECK_EQUAL(sizeof(R1S), 20);
36 BOOST_CHECK_EQUAL(R1S.size(), 20);