The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions | Variables
test_formula_core.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <ctime>
#include "formula/formula.hpp"
#include "formula/callable.hpp"
Include dependency graph for test_formula_core.cpp:

Go to the source code of this file.

Classes

class  mock_char
 
class  mock_party
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-test"
 

Functions

 BOOST_AUTO_TEST_CASE (test_formula_basic_arithmetic)
 
 BOOST_AUTO_TEST_CASE (test_formula_basic_logic)
 
 BOOST_AUTO_TEST_CASE (test_formula_callable)
 
 BOOST_AUTO_TEST_CASE (test_formula_where_clause)
 
 BOOST_AUTO_TEST_CASE (test_formula_strings)
 
 BOOST_AUTO_TEST_CASE (test_formula_dice)
 
 BOOST_AUTO_TEST_CASE (test_formula_containers)
 

Variables

mock_char c
 
mock_party p
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-test"

Definition at line 15 of file test_formula_core.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( test_formula_basic_arithmetic  )

Definition at line 74 of file test_formula_core.cpp.

BOOST_AUTO_TEST_CASE ( test_formula_basic_logic  )

Definition at line 96 of file test_formula_core.cpp.

BOOST_AUTO_TEST_CASE ( test_formula_callable  )

Definition at line 112 of file test_formula_core.cpp.

BOOST_AUTO_TEST_CASE ( test_formula_where_clause  )

Definition at line 122 of file test_formula_core.cpp.

BOOST_AUTO_TEST_CASE ( test_formula_strings  )

Definition at line 131 of file test_formula_core.cpp.

BOOST_AUTO_TEST_CASE ( test_formula_dice  )

Definition at line 147 of file test_formula_core.cpp.

References variant::as_int(), and game_logic::formula::evaluate().

BOOST_AUTO_TEST_CASE ( test_formula_containers  )

Variable Documentation

Definition at line 71 of file test_formula_core.cpp.

Definition at line 72 of file test_formula_core.cpp.