mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue