Changeset View
Changeset View
Standalone View
Standalone View
src/test/bitmanip_tests.cpp
// Copyright (c) 2019 The Bitcoin developers | // Copyright (c) 2019 The Bitcoin 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 <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <util/bitmanip.h> | #include <util/bitmanip.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(bitmanip_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(bitmanip_tests, BasicTestingSetup) | ||||
static void CheckBitCount(uint32_t value, uint32_t expected_count) { | static void CheckBitCount(uint32_t value, uint32_t expected_count) { | ||||
// Count are rotation invariant. | // Count are rotation invariant. | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |