16 #define GETTEXT_DOMAIN "wesnoth-test"
18 #include <boost/test/unit_test.hpp>
20 #include <boost/algorithm/string/predicate.hpp>
32 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle.cfg";
33 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle.cfg";
55 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle.cfg";
56 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_only_if_used.cfg";
74 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle.cfg";
75 constexpr
auto config_path
76 =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_crashes_on_unknown_key.cfg";
97 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_missing.cfg";
98 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle.cfg";
119 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_missing.cfg";
120 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_only_if_used.cfg";
138 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_mandatory_missing.cfg";
139 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_mandatory.cfg";
157 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_mandatory_missing.cfg";
158 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_mandatory_missing.cfg";
179 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle_mandatory.cfg";
180 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_mandatory.cfg";
198 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_link_cycle.cfg";
205 BOOST_AUTO_TEST_SUITE_END()
A config object defines a single node in a WML file, with access to child nodes.
Realization of serialization/validator.hpp abstract validator.
Interfaces for manipulating version numbers of engine, add-ons, etc.
const version_info wesnoth_version(VERSION)
bool contains(const Container &container, const Value &value)
Returns true iff value is found in container.
filesystem::scoped_istream preprocess_file(const std::string &fname, preproc_map *defines)
Function to use the WML preprocessor on a file.
std::map< std::string, struct preproc_define > preproc_map
One of the realizations of serialization/validator.hpp abstract validator.
void read(config &cfg, std::istream &in, abstract_validator *validator)
Used to manage with not initialized validators Supposed to be thrown from the constructor.
Helper class, don't construct this directly.
BOOST_AUTO_TEST_SUITE(filesystem)
BOOST_AUTO_TEST_CASE(test_super_cycle)
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...