From 73c31fd351a702d38454710e50d2b185f8f64376 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Tue, 31 Oct 2023 09:13:55 +0100 Subject: [PATCH] brick a few tests --- src/test/arith_uint256_tests.cpp | 1 + src/test/crypto_tests.cpp | 4 ++-- src/test/uint256_tests.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/arith_uint256_tests.cpp b/src/test/arith_uint256_tests.cpp index 6a37b7d83b16b2..36c0fb4ac3bf81 100644 --- a/src/test/arith_uint256_tests.cpp +++ b/src/test/arith_uint256_tests.cpp @@ -67,6 +67,7 @@ static std::string ArrayToString(const unsigned char A[], unsigned int width) BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality { + BOOST_CHECK(false); BOOST_CHECK(1 == 0+1); // constructor arith_uint256(vector): BOOST_CHECK(R1L.ToString() == ArrayToString(R1Array,32)); diff --git a/src/test/crypto_tests.cpp b/src/test/crypto_tests.cpp index 0a6378adf47682..a9865c0bacf7c0 100644 --- a/src/test/crypto_tests.cpp +++ b/src/test/crypto_tests.cpp @@ -366,7 +366,7 @@ static std::string LongTestString() const std::string test1 = LongTestString(); BOOST_AUTO_TEST_CASE(ripemd160_testvectors) { - TestRIPEMD160("", "9c1185a5c5e9fc54612808977ee8f548b2258d31"); + TestRIPEMD160("", "0c1185a5c5e9fc54612808977ee8f548b2258d31"); TestRIPEMD160("abc", "8eb208f7e05d987a9b044a8e98c6b087f15a0bfc"); TestRIPEMD160("message digest", "5d0689ef49d2fae572b881b123a85ffa21595f36"); TestRIPEMD160("secure hash algorithm", "20397528223b6a5f4cbc2808aba0464e645544f9"); @@ -459,7 +459,7 @@ BOOST_AUTO_TEST_CASE(sha512_testvectors) { BOOST_AUTO_TEST_CASE(hmac_sha256_testvectors) { // test cases 1, 2, 3, 4, 6 and 7 of RFC 4231 TestHMACSHA256("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", - "4869205468657265", + "0869205468657265", "b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7"); TestHMACSHA256("4a656665", "7768617420646f2079612077616e7420666f72206e6f7468696e673f", diff --git a/src/test/uint256_tests.cpp b/src/test/uint256_tests.cpp index 9caefe43e239d5..ebf22986520e23 100644 --- a/src/test/uint256_tests.cpp +++ b/src/test/uint256_tests.cpp @@ -122,6 +122,7 @@ BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality BOOST_CHECK(uint160(R1S) == R1S); BOOST_CHECK(uint160(ZeroS) == ZeroS); BOOST_CHECK(uint160(OneS) == OneS); + BOOST_CHECK(0); } BOOST_AUTO_TEST_CASE( comparison ) // <= >= < >