MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / CheckNegate

Function CheckNegate

src/test/scriptnum_tests.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static void CheckNegate(const int64_t& num)
73{
74 const CBigNum bignum(num);
75 const CScriptNum scriptnum(num);
76
77 // -INT64_MIN is undefined
78 if (num != std::numeric_limits<int64_t>::min())
79 BOOST_CHECK(verify(-bignum, -scriptnum));
80}
81
82static void CheckSubtract(const int64_t& num1, const int64_t& num2)
83{

Callers 1

RunOperatorsFunction · 0.85

Calls 1

verifyFunction · 0.85

Tested by

no test coverage detected