Changeset View
Changeset View
Standalone View
Standalone View
src/test/uint256_tests.cpp
// Copyright (c) 2011-2019 The Bitcoin Core developers | // Copyright (c) 2011-2019 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 <uint256.h> | #include <uint256.h> | ||||
#include <arith_uint256.h> | #include <arith_uint256.h> | ||||
#include <streams.h> | #include <streams.h> | ||||
#include <version.h> | #include <version.h> | ||||
#include <test/setup_common.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <cmath> | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <cstdio> | |||||
#include <iomanip> | #include <iomanip> | ||||
#include <limits> | |||||
#include <sstream> | #include <sstream> | ||||
#include <string> | #include <string> | ||||
BOOST_FIXTURE_TEST_SUITE(uint256_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(uint256_tests, BasicTestingSetup) | ||||
const uint8_t R1Array[] = | const uint8_t R1Array[] = | ||||
"\x9c\x52\x4a\xdb\xcf\x56\x11\x12\x2b\x29\x12\x5e\x5d\x35\xd2\xd2" | "\x9c\x52\x4a\xdb\xcf\x56\x11\x12\x2b\x29\x12\x5e\x5d\x35\xd2\xd2" | ||||
"\x22\x81\xaa\xb5\x33\xf0\x08\x32\xd5\x56\xb1\xf9\xea\xe5\x1d\x7d"; | "\x22\x81\xaa\xb5\x33\xf0\x08\x32\xd5\x56\xb1\xf9\xea\xe5\x1d\x7d"; | ||||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |