The Battle for Wesnoth  1.19.0-dev
Macros | Functions
test_macro_define.cpp File Reference

Test if the WML preprocessor and parser together can correctly process #define and #undef macros. More...

#include "tests/utils/wml_equivalence.hpp"
#include <boost/test/unit_test.hpp>
Include dependency graph for test_macro_define.cpp:

Go to the source code of this file.

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Functions

 BOOST_AUTO_TEST_CASE (macro_define_noArgument_ParseAsExpected)
 
 BOOST_AUTO_TEST_CASE (macro_define_1Argument_ParseAsExpected)
 

Detailed Description

Test if the WML preprocessor and parser together can correctly process #define and #undef macros.

Definition in file test_macro_define.cpp.

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 22 of file test_macro_define.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( macro_define_1Argument_ParseAsExpected  )

Definition at line 45 of file test_macro_define.cpp.

References check_wml_equivalence().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( macro_define_noArgument_ParseAsExpected  )

Definition at line 29 of file test_macro_define.cpp.

References check_wml_equivalence(), and i.