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

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

commit 7c551dc39ddcdc42ee4a11250d57a59ef446f4c9
Author: krzys-h <krzy...@interia.pl>
Date:   Tue Apr 19 21:09:41 2016 +0200

    Added unit tests for #768
---
 test/unit/CBot/CBot_test.cpp | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/unit/CBot/CBot_test.cpp b/test/unit/CBot/CBot_test.cpp
index 63c3e91..f130666 100644
--- a/test/unit/CBot/CBot_test.cpp
+++ b/test/unit/CBot/CBot_test.cpp
@@ -647,6 +647,18 @@ TEST_F(CBotUT, FunctionRedefined)
         "}\n",
         CBotErrRedefFunc
     );
+
+    ExecuteTest(
+        "int func(int[] test)\n"
+        "{\n"
+        "    return 1;\n"
+        "}\n"
+        "int func(int[] test)\n"
+        "{\n"
+        "    return 2;\n"
+        "}\n",
+        CBotErrRedefFunc
+    );
 }
 
 // TODO: Doesn't work
@@ -845,6 +857,18 @@ TEST_F(CBotUT, ClassMethodRedefined)
         "}\n",
         CBotErrRedefFunc
     );
+
+    ExecuteTest(
+        "public class TestClass {\n"
+        "    public int test(int[] test) {\n"
+        "        return 1;\n"
+        "    }\n"
+        "    public int test(int[] test) {\n"
+        "        return 2;\n"
+        "    }\n"
+        "}\n",
+        CBotErrRedefFunc
+    );
 }
 
 // TODO: Not only doesn't work but segfaults

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

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to