#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_match_types = std::tuple< bool, char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long > |
|
using | test_throw::test_nomatch_types = std::tuple< float, double, long double > |
|
using | test_throw::test_types = decltype(std::tuple_cat(test_nomatch_types{}, test_match_types{})) |
|
using | test_throw::test_lexical_cast_signed_types = std::tuple< signed char, short, int, long > |
|
using | test_throw::test_lexical_cast_unsigned_types = std::tuple< unsigned char, unsigned short, unsigned int, unsigned long > |
|
using | test_throw::test_lexical_cast_floating_point_types = std::tuple< float, double, long double > |
|
◆ GETTEXT_DOMAIN
#define GETTEXT_DOMAIN "wesnoth-test" |
◆ LEXICAL_CAST_DEBUG
#define LEXICAL_CAST_DEBUG |
◆ TEST_CASE
#define TEST_CASE |
( |
|
type_send, |
|
|
|
initializer |
|
) |
| |
Value: { \
type_send val = initializer 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 81 of file test_lexical_cast.cpp.
◆ BOOST_AUTO_TEST_CASE()
BOOST_AUTO_TEST_CASE |
( |
test_lexical_cast_result |
| ) |
|