summaryrefslogtreecommitdiff
path: root/src/animatedsprite_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/animatedsprite_unittest.cc')
-rw-r--r--src/animatedsprite_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/animatedsprite_unittest.cc b/src/animatedsprite_unittest.cc
index e3e470ac6..9fc927efd 100644
--- a/src/animatedsprite_unittest.cc
+++ b/src/animatedsprite_unittest.cc
@@ -84,7 +84,8 @@ TEST(AnimatedSprite, basic2)
"graphics/sprites/test.xml", 0);
sprite->play(SpriteAction::STAND);
- EXPECT_EQ(10, sprite->getAnimation()->getFrames().size());
+ EXPECT_EQ(10, const_cast<Animation*>(sprite->getAnimation())
+ ->getFrames().size());
EXPECT_NE(nullptr, sprite);
@@ -141,7 +142,8 @@ TEST(AnimatedSprite, basic2)
sprite2->play(SpriteAction::SIT);
EXPECT_EQ(false, sprite2->update(1));
- EXPECT_EQ(2, sprite2->getAnimation()->getFrames().size());
+ EXPECT_EQ(2, const_cast<Animation*>(sprite2->getAnimation())
+ ->getFrames().size());
EXPECT_EQ(0, sprite2->getFrameTime());
EXPECT_EQ(85, sprite2->getFrame()->delay);