Changeset View
Changeset View
Standalone View
Standalone View
src/test/inv_tests.cpp
// Copyright (c) 2017 Amaury SÉCHET | // Copyright (c) 2017 Amaury SÉCHET | ||||
// 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 "protocol.h" | #include <protocol.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_AUTO_TEST_SUITE(inv_tests) | BOOST_AUTO_TEST_SUITE(inv_tests) | ||||
static void CheckType(int type, int expected, bool IsTx, bool IsBlock) { | static void CheckType(int type, int expected, bool IsTx, bool IsBlock) { | ||||
CInv inv(type, uint256()); | CInv inv(type, uint256()); | ||||
BOOST_CHECK_EQUAL(inv.GetKind(), expected); | BOOST_CHECK_EQUAL(inv.GetKind(), expected); | ||||
Show All 29 Lines |