The Battle for Wesnoth  1.15.1+dev
Macros | Functions
test_config.cpp File Reference
#include <boost/test/unit_test.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.

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

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_config.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( test_config_attribute_value  )

Definition at line 25 of file test_config.cpp.

References c, config::clear(), and e.

◆ BOOST_AUTO_TEST_CASE() [2/2]

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 176 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(), variable_info< V >::exists_as_container(), and UNUSED.