Skip to content

Commit

Permalink
Add a few more formula string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 18, 2016
1 parent 928ccbf commit f0abbf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/test_formula_core.cpp
Expand Up @@ -137,6 +137,11 @@ BOOST_AUTO_TEST_CASE(test_formula_strings)

BOOST_CHECK_EQUAL(formula("'strength, agility: [strength], [agility]'").evaluate(c).as_string(),
"strength, agility: 15, 12");

BOOST_CHECK_EQUAL(formula("'String with [']quotes['] and [(]brackets[)]!'").evaluate().as_string(),
"String with 'quotes' and [brackets]!");
BOOST_CHECK_EQUAL(formula("'String with ['embedded ' .. 'string']!'").evaluate().as_string(),
"String with embedded string!");
}

BOOST_AUTO_TEST_CASE(test_formula_dice) {
Expand Down

0 comments on commit f0abbf1

Please sign in to comment.