The Battle for Wesnoth  1.19.8+dev
Typedefs | Functions
test_throw Namespace Reference

Typedefs

using test_bool_types = std::tuple< bool >
 
using test_integral_types = std::tuple< char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long >
 
using test_floating_point_types = std::tuple< float, double, long double >
 
using test_match_types = decltype(std::tuple_cat(test_bool_types{}, test_integral_types{}))
 
using test_nomatch_types = decltype(std::tuple_cat(test_floating_point_types{}))
 
using test_types = decltype(std::tuple_cat(test_nomatch_types{}, test_match_types{}))
 
using test_arethmetic_types = decltype(std::tuple_cat(test_integral_types{}, test_floating_point_types{}))
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_throw, T, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_arethmetic_signed, T, test_arethmetic_types)
 
 BOOST_AUTO_TEST_CASE (test_lexical_cast_bool)
 

Typedef Documentation

◆ test_arethmetic_types

Definition at line 62 of file test_lexical_cast.cpp.

◆ test_bool_types

using test_throw::test_bool_types = typedef std::tuple< bool>

Definition at line 39 of file test_lexical_cast.cpp.

◆ test_floating_point_types

using test_throw::test_floating_point_types = typedef std::tuple<float, double, long double>

Definition at line 54 of file test_lexical_cast.cpp.

◆ test_integral_types

using test_throw::test_integral_types = typedef std::tuple< char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long >

Definition at line 43 of file test_lexical_cast.cpp.

◆ test_match_types

using test_throw::test_match_types = typedef decltype(std::tuple_cat(test_bool_types{}, test_integral_types{}))

Definition at line 58 of file test_lexical_cast.cpp.

◆ test_nomatch_types

using test_throw::test_nomatch_types = typedef decltype(std::tuple_cat(test_floating_point_types{}))

Definition at line 59 of file test_lexical_cast.cpp.

◆ test_types

using test_throw::test_types = typedef decltype(std::tuple_cat(test_nomatch_types{}, test_match_types{}))

Definition at line 60 of file test_lexical_cast.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

test_throw::BOOST_AUTO_TEST_CASE ( test_lexical_cast_bool  )

Definition at line 127 of file test_lexical_cast.cpp.

References validate().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/2]

test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE ( test_lexical_arethmetic_signed  ,
,
test_arethmetic_types   
)

Definition at line 111 of file test_lexical_cast.cpp.

References validate().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/2]

test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE ( test_lexical_cast_throw  ,
,
test_types   
)

Definition at line 95 of file test_lexical_cast.cpp.

References TEST_CASE.