mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
44b87aeff6
commit
52fb177461
@ -254,6 +254,14 @@ BOOST_AUTO_TEST_CASE(advanced)
|
|||||||
expr = ConfigCompiler::CompileText("<test>", "typeof({}) == Dictionary");
|
expr = ConfigCompiler::CompileText("<test>", "typeof({}) == Dictionary");
|
||||||
BOOST_CHECK(expr->Evaluate(frame));
|
BOOST_CHECK(expr->Evaluate(frame));
|
||||||
delete expr;
|
delete expr;
|
||||||
|
|
||||||
|
expr = ConfigCompiler::CompileText("<test>", "typeof(3) == Number");
|
||||||
|
BOOST_CHECK(expr->Evaluate(frame));
|
||||||
|
delete expr;
|
||||||
|
|
||||||
|
expr = ConfigCompiler::CompileText("<test>", "typeof(\"test\") == String");
|
||||||
|
BOOST_CHECK(expr->Evaluate(frame));
|
||||||
|
delete expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user