Ejemplo n.º 1
0
TEST(DirectExecTest, HostUnmodifedByParseTest)
{
	TestHost host;
	TestHost host2;
	host.test_equality(host2);
	char szScript[] = "8*5";
	C4AulScriptFunc *pFunc = new C4AulScriptFunc(host.GetPropList(), nullptr, nullptr, szScript);
	host.test_equality(host2);
	pFunc->ParseDirectExecStatement(&::ScriptEngine);
	host.test_equality(host2);
	delete pFunc;
}
Ejemplo n.º 2
0
TEST(DirectExecTest, HostUnmodifedByParseTest)
{
	TestHost host;
	TestHost host2 = host;
	host.test_equality(host2);
	char szScript[] = "8*5";
	C4AulScriptFunc *pFunc = new C4AulScriptFunc(&host, host.GetScriptHost(), 0, szScript);
	host.test_equality(host2);
	pFunc->ParseFn();
	host.test_equality(host2);
	delete pFunc;
}