Aul Tests: Move Translate() test stub to predefined functions test

As small as the Translate() test is, it is exercising a predefined
function and not just the Aul engine itself.
objectmenu
Nicolas Hake 2016-01-23 02:59:46 +01:00
parent 9a9bcd0568
commit 53fe0fa1cc
2 changed files with 5 additions and 5 deletions

View File

@ -23,6 +23,11 @@
class AulPredefFunctionTest : public AulTest
{};
TEST_F(AulPredefFunctionTest, Translate)
{
EXPECT_EQ(C4VString("a"), RunExpr("Translate(\"a\")"));
}
TEST_F(AulPredefFunctionTest, Min)
{
EXPECT_EQ(C4VInt(0), RunExpr("Min(0, 1)"));

View File

@ -95,8 +95,3 @@ TEST_F(AulTest, ValueReturn)
C4VPropList("a", C4VInt(1), "b", C4VArray()),
RunExpr("{\"a\": 1, \"b\"=[]}"));
}
TEST_F(AulTest, Translate)
{
EXPECT_EQ(C4VString("a"), RunExpr("Translate(\"a\")"));
}