Implement more unit tests for typeof()

refs #8028
This commit is contained in:
Gunnar Beutner 2014-12-09 16:46:29 +01:00
parent 44b87aeff6
commit 52fb177461
1 changed files with 8 additions and 0 deletions

View File

@ -254,6 +254,14 @@ BOOST_AUTO_TEST_CASE(advanced)
expr = ConfigCompiler::CompileText("<test>", "typeof({}) == Dictionary");
BOOST_CHECK(expr->Evaluate(frame));
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()