Changeset View
Changeset View
Standalone View
Standalone View
src/test/arith_uint256_tests.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "arith_uint256.h" | #include "arith_uint256.h" | ||||
#include "test/test_bitcoin.h" | #include "test/test_bitcoin.h" | ||||
#include "uint256.h" | #include "uint256.h" | ||||
#include "version.h" | #include "version.h" | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <cmath> | #include <cmath> | ||||
#include <cstdint> | |||||
#include <iomanip> | #include <iomanip> | ||||
#include <limits> | #include <limits> | ||||
#include <sstream> | #include <sstream> | ||||
#include <stdint.h> | |||||
#include <string> | #include <string> | ||||
BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup) | ||||
/// Convert vector to arith_uint256, via uint256 blob | /// Convert vector to arith_uint256, via uint256 blob | ||||
inline arith_uint256 arith_uint256V(const std::vector<unsigned char> &vch) { | inline arith_uint256 arith_uint256V(const std::vector<unsigned char> &vch) { | ||||
return UintToArith256(uint256(vch)); | return UintToArith256(uint256(vch)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 646 Lines • Show Last 20 Lines |