Reenabled working tests after fc7e621471

master
krzys-h 2016-05-27 11:39:33 +02:00
parent fc7e621471
commit 620620fa61
1 changed files with 26 additions and 2 deletions

View File

@ -909,8 +909,7 @@ TEST_F(CBotUT, DISABLED_PublicClasses)
); );
} }
// TODO: This needs to be fixed TEST_F(CBotUT, ThisEarlyContextSwitch_Issue436)
TEST_F(CBotUT, DISABLED_WeirdThisEarlyContextSwitch_Issue436)
{ {
ExecuteTest( ExecuteTest(
"public class Something {\n" "public class Something {\n"
@ -1091,3 +1090,28 @@ TEST_F(CBotUT, TestArrayFunctionReturn)
"}\n" "}\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"
);
}