diff --git a/test/config-ops.cpp b/test/config-ops.cpp index 0def87c9f..6b0ec3953 100644 --- a/test/config-ops.cpp +++ b/test/config-ops.cpp @@ -293,8 +293,7 @@ BOOST_AUTO_TEST_CASE(advanced) delete expr; expr = ConfigCompiler::CompileText("", "\"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("", "3 = 3");