@@ -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
919919TEST (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