#include "lexical_cast.hpp"
#include <boost/test/unit_test.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/copy.hpp>
#include <boost/mpl/back_inserter.hpp>
#include <boost/mpl/contains.hpp>
#include <boost/test/test_case_template.hpp>
#include <iostream>
Go to the source code of this file.
Namespaces | |
test_throw | |
implementation | |
Contains the implementation details for lexical_cast and shouldn't be used directly. | |
test_throw::implementation | |
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-test" |
#define | LEXICAL_CAST_DEBUG |
#define | TEST_CASE(type_send, initializer) |
Typedefs | |
typedef boost::mpl::vector < bool, char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long > | test_throw::test_match_types |
typedef boost::mpl::vector < float, double, long double > | test_throw::test_nomatch_types |
typedef boost::mpl::copy < test_nomatch_types, boost::mpl::back_inserter < test_match_types > >::type | test_throw::test_types |
typedef boost::mpl::vector < signed char, short, int, long > | test_throw::test_lexical_cast_signed_types |
typedef boost::mpl::vector < bool, unsigned char, unsigned short, unsigned int, unsigned long > | test_throw::test_lexical_cast_unsigned_types |
Functions | |
template<typename To , typename From > | |
To | test_throw::lexical_cast (From value) |
Lexical cast converts one type to another. More... | |
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_throw, T, test_types) | |
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_signed, T, test_lexical_cast_signed_types) | |
test_throw::BOOST_AUTO_TEST_CASE (test_lexical_cast_long_long) | |
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_unsigned, T, test_lexical_cast_unsigned_types) | |
test_throw::BOOST_AUTO_TEST_CASE (test_lexical_cast_unsigned_long_long) | |
BOOST_AUTO_TEST_CASE (test_lexical_cast_result) | |
#define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 15 of file test_lexical_cast.cpp.
#define LEXICAL_CAST_DEBUG |
Definition at line 36 of file test_lexical_cast.cpp.
#define TEST_CASE | ( | type_send, | |
initializer | |||
) |
Definition at line 85 of file test_lexical_cast.cpp.
BOOST_AUTO_TEST_CASE | ( | test_lexical_cast_result | ) |
Definition at line 201 of file test_lexical_cast.cpp.