#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <cmath>
#include "config.hpp"
#include "variable_info.hpp"
Go to the source code of this file.
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-test" |
Functions | |
BOOST_AUTO_TEST_CASE (test_config_attribute_value) | |
BOOST_AUTO_TEST_CASE (test_variable_info) | |
BOOST_AUTO_TEST_CASE (add_child_EmptyThis_newKey_AppendAndReturnNewEmptyChild) | |
BOOST_DATA_TEST_CASE (add_child_NonEmptyThis_newOrExistingKey_lOrRValue_AppendAndReturnNewChild, bdata::make({"A", "B", "C"}) *bdata::make< std::string >({"lvalue_ref", "rvalue_ref"}), key, update_ref_kind) | |
#define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 16 of file test_config.cpp.
BOOST_AUTO_TEST_CASE | ( | add_child_EmptyThis_newKey_AppendAndReturnNewEmptyChild | ) |
Definition at line 373 of file test_config.cpp.
References config::add_child().
BOOST_AUTO_TEST_CASE | ( | test_config_attribute_value | ) |
Definition at line 29 of file test_config.cpp.
References game_config::images::blank, c, and e.
BOOST_AUTO_TEST_CASE | ( | test_variable_info | ) |
This is the config: [tag1] [/tag1] [tag1] [tag2] [/tag2] [tag2] [/tag2] [tag2] atribute1 = 88 atribute2 = "value" [/tag2] [/tag1] [tag1] [/tag1]
Definition at line 267 of file test_config.cpp.
References variable_info< V >::as_container(), variable_info< V >::as_scalar(), c, variable_info< V >::exists_as_attribute(), and variable_info< V >::exists_as_container().
BOOST_DATA_TEST_CASE | ( | add_child_NonEmptyThis_newOrExistingKey_lOrRValue_AppendAndReturnNewChild | , |
bdata::make({"A", "B", "C"}) *bdata::make< std::string >({"lvalue_ref", "rvalue_ref"}) | , | ||
key | , | ||
update_ref_kind | |||
) |
Definition at line 383 of file test_config.cpp.