From 5324b99fd03b55892613fbc4fc3f3f6e862f6d9a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 11 Dec 2014 13:25:06 +0100 Subject: [PATCH] Fix unit tests refs #7883 --- test/config-ops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/config-ops.cpp b/test/config-ops.cpp index e7d88e2c8..458ae1b15 100644 --- a/test/config-ops.cpp +++ b/test/config-ops.cpp @@ -239,11 +239,11 @@ BOOST_AUTO_TEST_CASE(advanced) expr = ConfigCompiler::CompileText("", "a = 3 b = 3"); BOOST_CHECK_THROW(expr->Evaluate(frame), ScriptError); - expr = ConfigCompiler::CompileText("", "__function() { 3 }()"); + expr = ConfigCompiler::CompileText("", "function() { 3 }()"); BOOST_CHECK(expr->Evaluate(frame) == 3); delete expr; - expr = ConfigCompiler::CompileText("", "__function() { __return 3, 5 }()"); + expr = ConfigCompiler::CompileText("", "function() { return 3, 5 }()"); BOOST_CHECK(expr->Evaluate(frame) == 3); delete expr;