Changeset View
Changeset View
Standalone View
Standalone View
src/test/limitedmap_tests.cpp
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-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 "limitedmap.h" | #include <limitedmap.h> | ||||
#include "test/test_bitcoin.h" | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(limitedmap_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(limitedmap_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(limitedmap_test) { | BOOST_AUTO_TEST_CASE(limitedmap_test) { | ||||
// create a limitedmap capped at 10 items | // create a limitedmap capped at 10 items | ||||
limitedmap<int, int> map(10); | limitedmap<int, int> map(10); | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |