Skip to content

Commit

Permalink
Fix excessive shits in cppint tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 29, 2025
1 parent 6640126 commit 222aa04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/data/integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ BOOST_AUTO_TEST_CASE(integer__uint256_shift_right__null_hash__null_hash)
{
BOOST_REQUIRE_EQUAL(uint256_t() >> 0, uint256_t());
BOOST_REQUIRE_EQUAL(uint256_t() >> 1, uint256_t());
BOOST_REQUIRE_EQUAL(uint256_t() >> bc::max_uint32, uint256_t());
BOOST_REQUIRE_EQUAL(uint256_t() >> 42, uint256_t());
}

BOOST_AUTO_TEST_CASE(integer__uint256_shift_right__unit_hash_0__unit_hash)
Expand All @@ -301,7 +301,7 @@ BOOST_AUTO_TEST_CASE(integer__uint256_shift_right__unit_hash_positive__null_hash
{
static const uint256_t value(unit_hash);
BOOST_REQUIRE_EQUAL(value >> 1, uint256_t());
BOOST_REQUIRE_EQUAL(value >> bc::max_uint32, uint256_t());
BOOST_REQUIRE_EQUAL(value >> 42, uint256_t());
}

BOOST_AUTO_TEST_CASE(integer__uint256_shift_right__max_hash_1__most_hash)
Expand Down Expand Up @@ -452,7 +452,7 @@ BOOST_AUTO_TEST_CASE(integer__uint256_assign_shift_right__null_hash__null_hash)
uint256_t value3;
value1 >>= 0;
value2 >>= 1;
value3 >>= bc::max_uint32;
value3 >>= 42;
BOOST_REQUIRE_EQUAL(value1, uint256_t());
BOOST_REQUIRE_EQUAL(value2, uint256_t());
BOOST_REQUIRE_EQUAL(value3, uint256_t());
Expand All @@ -470,7 +470,7 @@ BOOST_AUTO_TEST_CASE(integer__uint256_assign_shift_right__unit_hash_positive__nu
uint256_t value1(unit_hash);
uint256_t value2(unit_hash);
value1 >>= 1;
value2 >>= bc::max_uint32;
value2 >>= 42;
BOOST_REQUIRE_EQUAL(value1, uint256_t());
BOOST_REQUIRE_EQUAL(value2, uint256_t());
}
Expand Down Expand Up @@ -499,7 +499,7 @@ BOOST_AUTO_TEST_CASE(integer__uint256_assign_shift_left__null_hash__null_hash)
uint256_t value3;
value1 <<= 0;
value2 <<= 1;
value3 <<= bc::max_uint32;
value3 <<= 42;
BOOST_REQUIRE_EQUAL(value1, uint256_t());
BOOST_REQUIRE_EQUAL(value2, uint256_t());
BOOST_REQUIRE_EQUAL(value3, uint256_t());
Expand Down

0 comments on commit 222aa04

Please sign in to comment.