#include "wml_equivalence.hpp"#include "serialization/parser.hpp"#include <boost/filesystem.hpp>#include <boost/filesystem/fstream.hpp>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Classes | |
| class | tmp_file |
| Self destructive temporary file at the current directory. More... | |
Functions | |
| config | preprocess_and_parse (const std::string &wml_str) |
| Make a syntax tree by preprocessing and parsing a WML string. More... | |
| void | check_wml_equivalence (const std::string &a, const std::string &b) |
| Assert two WML strings are equivalent. More... | |
| void check_wml_equivalence | ( | const std::string & | a, |
| const std::string & | b | ||
| ) |
Assert two WML strings are equivalent.
The function performs two steps:
Definition at line 65 of file wml_equivalence.cpp.
References b, and preprocess_and_parse().
Referenced by BOOST_AUTO_TEST_CASE().
| config preprocess_and_parse | ( | const std::string & | wml_str | ) |
Make a syntax tree by preprocessing and parsing a WML string.
| [in] | wml_str | The string |
Definition at line 57 of file wml_equivalence.cpp.
References b, tmp_file::path, preprocess_file(), io::read(), and tmp_file::set().
Referenced by check_wml_equivalence().