Changeset View
Changeset View
Standalone View
Standalone View
src/test/prevector_tests.cpp
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-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 "prevector.h" | #include <prevector.h> | ||||
#include <vector> | |||||
#include "reverse_iterator.h" | #include <reverse_iterator.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include "streams.h" | #include <streams.h> | ||||
#include "test/test_bitcoin.h" | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <vector> | |||||
BOOST_FIXTURE_TEST_SUITE(prevector_tests, TestingSetup) | BOOST_FIXTURE_TEST_SUITE(prevector_tests, TestingSetup) | ||||
template <unsigned int N, typename T> class prevector_tester { | template <unsigned int N, typename T> class prevector_tester { | ||||
typedef std::vector<T> realtype; | typedef std::vector<T> realtype; | ||||
realtype real_vector; | realtype real_vector; | ||||
realtype real_vector_alt; | realtype real_vector_alt; | ||||
typedef prevector<N, T> pretype; | typedef prevector<N, T> pretype; | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |