@@ -187,30 +187,39 @@ TEST(TargetTest, CostumeIndex)
187187{
188188 Target target;
189189 ASSERT_EQ (target.costumeIndex (), -1 );
190+ ASSERT_EQ (target.currentCostume (), nullptr );
190191
191192 target.setCostumeIndex (0 );
192193 ASSERT_EQ (target.costumeIndex (), -1 );
194+ ASSERT_EQ (target.currentCostume (), nullptr );
193195
194196 target.setCostumeIndex (1 );
195197 ASSERT_EQ (target.costumeIndex (), -1 );
198+ ASSERT_EQ (target.currentCostume (), nullptr );
196199
197200 target.addCostume (std::make_shared<Costume>(" " , " " , " " ));
198201 ASSERT_EQ (target.costumeIndex (), -1 );
202+ ASSERT_EQ (target.currentCostume (), nullptr );
199203
200204 target.setCostumeIndex (0 );
201205 ASSERT_EQ (target.costumeIndex (), 0 );
206+ ASSERT_EQ (target.currentCostume (), target.costumeAt (0 ));
202207
203208 target.setCostumeIndex (1 );
204209 ASSERT_EQ (target.costumeIndex (), 0 );
210+ ASSERT_EQ (target.currentCostume (), target.costumeAt (0 ));
205211
206212 target.addCostume (std::make_shared<Costume>(" " , " " , " " ));
207213 ASSERT_EQ (target.costumeIndex (), 0 );
214+ ASSERT_EQ (target.currentCostume (), target.costumeAt (0 ));
208215
209216 target.setCostumeIndex (1 );
210217 ASSERT_EQ (target.costumeIndex (), 1 );
218+ ASSERT_EQ (target.currentCostume (), target.costumeAt (1 ));
211219
212220 target.setCostumeIndex (2 );
213221 ASSERT_EQ (target.costumeIndex (), 1 );
222+ ASSERT_EQ (target.currentCostume (), target.costumeAt (1 ));
214223}
215224
216225TEST (TargetTest, Costumes)
0 commit comments