Fix the Expression unit tests

refs #7822
This commit is contained in:
Gunnar Beutner 2014-11-28 07:31:37 +01:00
parent b5b1be95a2
commit d013df06f7
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(advanced)
delete expr;
expr = ConfigCompiler::CompileText("<test>", "a = 3 b = 3");
BOOST_CHECK(expr == NULL);
BOOST_CHECK_THROW(expr->Evaluate(frame), ConfigError);
expr = ConfigCompiler::CompileText("<test>", "__function() { 3 }()");
BOOST_CHECK(expr->Evaluate(frame) == 3);