Changeset View
Changeset View
Standalone View
Standalone View
src/test/scriptnum_tests.cpp
// Copyright (c) 2012-2015 The Bitcoin Core developers | // Copyright (c) 2012-2015 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 "script/script.h" | #include <script/script.h> | ||||
#include "scriptnum10.h" | |||||
#include "test/test_bitcoin.h" | #include <test/scriptnum10.h> | ||||
#include <test/test_bitcoin.h> | |||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <climits> | #include <climits> | ||||
#include <cstdint> | #include <cstdint> | ||||
BOOST_FIXTURE_TEST_SUITE(scriptnum_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(scriptnum_tests, BasicTestingSetup) | ||||
/** A selection of numbers that do not trigger int64_t overflow | /** A selection of numbers that do not trigger int64_t overflow | ||||
* when added/subtracted. */ | * when added/subtracted. */ | ||||
static const int64_t values[] = {0, | static const int64_t values[] = {0, | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |