[colobot] 84/145: Reenabled working tests after fc7e6214714c0c959fe00f200dcd30653107bbc0

Didier Raboud odyx at moszumanska.debian.org
Mon Jul 11 12:56:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 620620fa615fba839c809d89e3e3ac5efb5f9976
Author: krzys-h <krzys_h at interia.pl>
Date:   Fri May 27 11:39:33 2016 +0200

    Reenabled working tests after fc7e6214714c0c959fe00f200dcd30653107bbc0
---
 test/unit/CBot/CBot_test.cpp | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/test/unit/CBot/CBot_test.cpp b/test/unit/CBot/CBot_test.cpp
index f130666..129d797 100644
--- a/test/unit/CBot/CBot_test.cpp
+++ b/test/unit/CBot/CBot_test.cpp
@@ -909,8 +909,7 @@ TEST_F(CBotUT, DISABLED_PublicClasses)
     );
 }
 
-// TODO: This needs to be fixed
-TEST_F(CBotUT, DISABLED_WeirdThisEarlyContextSwitch_Issue436)
+TEST_F(CBotUT, ThisEarlyContextSwitch_Issue436)
 {
     ExecuteTest(
         "public class Something {\n"
@@ -1091,3 +1090,28 @@ TEST_F(CBotUT, TestArrayFunctionReturn)
         "}\n"
     );
 }
+
+TEST_F(CBotUT, AccessMembersInParameters_Issue256)
+{
+    ExecuteTest(
+        "public class Test1 {\n"
+        "    int x = 1337;\n"
+        "}\n"
+        "public class Test2 {\n"
+        "    public bool test(int a) {\n"
+        "        return a == 1337;\n"
+        "    }\n"
+        "}\n"
+        "public class Test3 {\n"
+        "    public Test1 test1 = new Test1();\n"
+        "    public Test2 test2 = new Test2();\n"
+        "    public void test() {\n"
+        "        ASSERT(test2.test(test1.x));\n"
+        "    }\n"
+        "}\n"
+        "extern void AccessMembersInParameters() {\n"
+        "    Test3 t();\n"
+        "    t.test();\n"
+        "}\n"
+    );
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list