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";
53 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle.cfg";
54 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_only_if_used.cfg";
70 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle.cfg";
71 constexpr
auto config_path
72 =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_crashes_on_unknown_key.cfg";
91 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_missing.cfg";
92 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle.cfg";
111 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_missing.cfg";
112 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_only_if_used.cfg";
128 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_mandatory_missing.cfg";
129 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_mandatory.cfg";
145 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_mandatory_missing.cfg";
146 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_mandatory_missing.cfg";
164 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_super_cycle_mandatory.cfg";
165 constexpr
auto config_path =
"src/tests/wml/schema/test_schema_validator/test_super_cycle_mandatory.cfg";
181 constexpr
auto schema_path =
"src/tests/wml/schema/test_schema_validator/test_schema_link_cycle.cfg";
188 BOOST_AUTO_TEST_SUITE_END()
Realization of serialization/validator.hpp abstract validator.
Interfaces for manipulating version numbers of engine, add-ons, etc.
const version_info wesnoth_version(VERSION)
config read(std::istream &in, abstract_validator *validator)
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.
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...