forked from Mirrors/openclonk
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
parent
9a9bcd0568
commit
53fe0fa1cc
|
@ -23,6 +23,11 @@
|
||||||
class AulPredefFunctionTest : public AulTest
|
class AulPredefFunctionTest : public AulTest
|
||||||
{};
|
{};
|
||||||
|
|
||||||
|
TEST_F(AulPredefFunctionTest, Translate)
|
||||||
|
{
|
||||||
|
EXPECT_EQ(C4VString("a"), RunExpr("Translate(\"a\")"));
|
||||||
|
}
|
||||||
|
|
||||||
TEST_F(AulPredefFunctionTest, Min)
|
TEST_F(AulPredefFunctionTest, Min)
|
||||||
{
|
{
|
||||||
EXPECT_EQ(C4VInt(0), RunExpr("Min(0, 1)"));
|
EXPECT_EQ(C4VInt(0), RunExpr("Min(0, 1)"));
|
||||||
|
|
|
@ -95,8 +95,3 @@ TEST_F(AulTest, ValueReturn)
|
||||||
C4VPropList("a", C4VInt(1), "b", C4VArray()),
|
C4VPropList("a", C4VInt(1), "b", C4VArray()),
|
||||||
RunExpr("{\"a\": 1, \"b\"=[]}"));
|
RunExpr("{\"a\": 1, \"b\"=[]}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(AulTest, Translate)
|
|
||||||
{
|
|
||||||
EXPECT_EQ(C4VString("a"), RunExpr("Translate(\"a\")"));
|
|
||||||
}
|
|
Loading…
Reference in New Issue