Fix unit test

refs #8074
This commit is contained in:
Gunnar Beutner 2014-12-15 15:12:24 +01:00
parent 938ae083cd
commit dcaad50221
1 changed files with 1 additions and 2 deletions

View File

@ -293,8 +293,7 @@ BOOST_AUTO_TEST_CASE(advanced)
delete expr;
expr = ConfigCompiler::CompileText("<test>", "\"a\" = 3");
BOOST_CHECK(expr->Evaluate(frame) == 3);
BOOST_CHECK(frame.Locals->Get("a") == 3);
BOOST_CHECK_THROW(expr->Evaluate(frame), ScriptError);
delete expr;
expr = ConfigCompiler::CompileText("<test>", "3 = 3");