The Battle for Wesnoth  1.15.2+dev
Macros | Functions
test_util.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "utils/math.hpp"
#include <cstdint>
Include dependency graph for test_util.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Functions

 BOOST_AUTO_TEST_CASE (test_bit_width)
 
 BOOST_AUTO_TEST_CASE (test_count_ones)
 
 BOOST_AUTO_TEST_CASE (test_count_leading_zeros)
 
 BOOST_AUTO_TEST_CASE (test_count_leading_ones)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_util.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( test_bit_width  )

Definition at line 25 of file test_util.cpp.

References bit_width().

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( test_count_ones  )

Definition at line 38 of file test_util.cpp.

References count_ones().

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( test_count_leading_zeros  )

Definition at line 53 of file test_util.cpp.

References count_leading_zeros().

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( test_count_leading_ones  )

Definition at line 76 of file test_util.cpp.

References count_leading_ones().