#include <boost/test/unit_test.hpp>#include <ctime>#include "formula/formula.hpp"#include "formula/callable.hpp"
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 |
| #define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 15 of file test_formula_core.cpp.
| 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 | ) |
Definition at line 152 of file test_formula_core.cpp.
References game_logic::formula::evaluate(), and variant::num_elements().
Definition at line 71 of file test_formula_core.cpp.
Definition at line 72 of file test_formula_core.cpp.
1.8.8