mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
scripted-diff: Replace uint256S("str") -> uint256{"str"}
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/\buint256S\("(0x)?([^"]{64})"\)/uint256{"\2"}/g' $(git grep -l uint256S)
-END VERIFY SCRIPT-
This commit is contained in:
@@ -163,8 +163,8 @@ BOOST_AUTO_TEST_CASE( comparison ) // <= >= < >
|
||||
// Ensure last element comparisons give a different result (swapped params):
|
||||
BOOST_CHECK_LT(*(R1L.end()-1), *(R2L.end()-1));
|
||||
// Hex strings represent reverse-encoded bytes, with lexicographic ordering:
|
||||
BOOST_CHECK_LT(uint256S("1000000000000000000000000000000000000000000000000000000000000000"),
|
||||
uint256S("0000000000000000000000000000000000000000000000000000000000000001"));
|
||||
BOOST_CHECK_LT(uint256{"1000000000000000000000000000000000000000000000000000000000000000"},
|
||||
uint256{"0000000000000000000000000000000000000000000000000000000000000001"});
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(methods) // GetHex SetHexDeprecated FromHex begin() end() size() GetLow64 GetSerializeSize, Serialize, Unserialize
|
||||
@@ -395,7 +395,7 @@ BOOST_AUTO_TEST_CASE(from_hex)
|
||||
|
||||
BOOST_AUTO_TEST_CASE( check_ONE )
|
||||
{
|
||||
uint256 one = uint256S("0000000000000000000000000000000000000000000000000000000000000001");
|
||||
uint256 one = uint256{"0000000000000000000000000000000000000000000000000000000000000001"};
|
||||
BOOST_CHECK_EQUAL(one, uint256::ONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user