MCPcopy Create free account
hub / github.com/LUX-Core/lux / CheckNegate

Function CheckNegate

src/test/scriptnum_tests.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

RunOperatorsFunction · 0.85

Calls 1

verifyFunction · 0.85

Tested by

no test coverage detected