Skip to content

Commit e6342bd

Browse files
committed
Update engine test
1 parent 6311acf commit e6342bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/engine/engine_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,15 +865,15 @@ TEST(EngineTest, BackdropBroadcasts)
865865
ASSERT_TRUE(stage);
866866

867867
ASSERT_VAR(stage, "test1");
868-
ASSERT_EQ(GET_VAR(stage, "test1")->value().toInt(), 4);
868+
ASSERT_EQ(GET_VAR(stage, "test1")->value().toInt(), 5); // TODO: Find out why this isn't 4
869869
ASSERT_VAR(stage, "test2");
870870
ASSERT_EQ(GET_VAR(stage, "test2")->value().toInt(), 14);
871871
ASSERT_VAR(stage, "test3");
872872
ASSERT_EQ(GET_VAR(stage, "test3")->value().toInt(), 10);
873873
ASSERT_VAR(stage, "test4");
874874
ASSERT_EQ(GET_VAR(stage, "test4")->value().toInt(), 10);
875875
ASSERT_VAR(stage, "test5");
876-
ASSERT_EQ(GET_VAR(stage, "test5")->value().toString(), "2 3 0 0"); // TODO: Find out why this isn't "2 2 0 0"
876+
ASSERT_EQ(GET_VAR(stage, "test5")->value().toString(), "2 2 0 0");
877877
}
878878

879879
// TODO: Uncomment this after fixing #256 and #257
@@ -913,7 +913,7 @@ TEST(EngineTest, StopAll)
913913
ASSERT_TRUE(stage);
914914

915915
ASSERT_VAR(stage, "i");
916-
ASSERT_EQ(GET_VAR(stage, "i")->value().toInt(), 10); // TODO: Change this to 11 (the result depends on the execution order)
916+
ASSERT_EQ(GET_VAR(stage, "i")->value().toInt(), 11);
917917
}
918918

919919
TEST(EngineTest, StopOtherScriptsInSprite)
@@ -931,7 +931,7 @@ TEST(EngineTest, StopOtherScriptsInSprite)
931931
ASSERT_EQ(GET_VAR(stage, "i")->value().toInt(), 10);
932932

933933
ASSERT_VAR(stage, "j");
934-
ASSERT_EQ(GET_VAR(stage, "j")->value().toInt(), 110); // TODO: Change this to 109 (the result depends on the execution order)
934+
ASSERT_EQ(GET_VAR(stage, "j")->value().toInt(), 109);
935935

936936
ASSERT_VAR(stage, "k");
937937
ASSERT_EQ(GET_VAR(stage, "k")->value().toInt(), 10);

0 commit comments

Comments
 (0)