From 53fe0fa1cc3e14054af10b5ebe243f3678c731ba Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Sat, 23 Jan 2016 02:59:46 +0100 Subject: [PATCH] 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. --- tests/aul/AulPredefinedFunctionTest.cpp | 5 +++++ tests/aul/AulTest.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/aul/AulPredefinedFunctionTest.cpp b/tests/aul/AulPredefinedFunctionTest.cpp index 5be911421..b3b52d729 100644 --- a/tests/aul/AulPredefinedFunctionTest.cpp +++ b/tests/aul/AulPredefinedFunctionTest.cpp @@ -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)")); diff --git a/tests/aul/AulTest.cpp b/tests/aul/AulTest.cpp index 6ac22b0a3..d4bf341e1 100644 --- a/tests/aul/AulTest.cpp +++ b/tests/aul/AulTest.cpp @@ -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\")")); -} \ No newline at end of file