The Battle for Wesnoth  1.15.12+dev
Macros | Functions
test_config.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <cmath>
#include "config.hpp"
#include "variable_info.hpp"
Include dependency graph for test_config.cpp:

Go to the source code of this file.


#define GETTEXT_DOMAIN   "wesnoth-test"


 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)

Macro Definition Documentation


#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_config.cpp.

Function Documentation


BOOST_AUTO_TEST_CASE ( test_config_attribute_value  )

Definition at line 28 of file test_config.cpp.

References c, config::clear(), 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 171 of file test_config.cpp.

References variable_info< V >::as_container(), variable_info< V >::as_scalar(), c, config::empty(), variable_info< V >::exists_as_attribute(), and variable_info< V >::exists_as_container().


BOOST_AUTO_TEST_CASE ( add_child_EmptyThis_newKey_AppendAndReturnNewEmptyChild  )

Definition at line 277 of file test_config.cpp.

References config::add_child().


BOOST_DATA_TEST_CASE ( add_child_NonEmptyThis_newOrExistingKey_lOrRValue_AppendAndReturnNewChild  ,
bdata::make({"A", "B", "C"}) *bdata::make< std::string >({"lvalue_ref", "rvalue_ref"})  ,
key  ,

Definition at line 287 of file test_config.cpp.

References config::add_child().