#include "lexical_cast.hpp"
#include "log.hpp"
#include <boost/test/unit_test.hpp>
#include <tuple>
Go to the source code of this file.
|
using | test_throw::test_bool_types = std::tuple< bool > |
|
using | test_throw::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_throw::test_floating_point_types = std::tuple< float, double, long double > |
|
using | test_throw::test_match_types = decltype(std::tuple_cat(test_bool_types{}, test_integral_types{})) |
|
using | test_throw::test_nomatch_types = decltype(std::tuple_cat(test_floating_point_types{})) |
|
using | test_throw::test_types = decltype(std::tuple_cat(test_nomatch_types{}, test_match_types{})) |
|
using | test_throw::test_arethmetic_types = decltype(std::tuple_cat(test_integral_types{}, test_floating_point_types{})) |
|
◆ GETTEXT_DOMAIN
#define GETTEXT_DOMAIN "wesnoth-test" |
◆ LEXICAL_CAST_DEBUG
#define LEXICAL_CAST_DEBUG |
◆ TEST_CASE
#define TEST_CASE |
( |
|
type_send | ) |
|
Value: { \
type_send val = value; \
\
BOOST_CHECK_EXCEPTION( \
lexical_cast<std::string>(val),
const char*,
validate); \
}
static void validate(boost::any &v, const std::vector< std::string > &values, two_strings *, int)
Definition at line 87 of file test_lexical_cast.cpp.
◆ BOOST_AUTO_TEST_CASE()
BOOST_AUTO_TEST_CASE |
( |
test_lexical_cast_result |
| ) |
|