The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
test_config.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <cmath>
#include "config.hpp"
#include "config_assign.hpp"
#include "variable_info.hpp"
Include dependency graph for test_config.cpp:

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)
 

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 26 of file test_config.cpp.

References 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 177 of file test_config.cpp.

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