summaryrefslogtreecommitdiff
path: root/src/animatedsprite_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-04 00:32:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-04 00:32:54 +0300
commitcad3b1d8688b94b185ada0f0b313435ac4b3b457 (patch)
treea27c65075d745208bd8ba1029762507abf740db8 /src/animatedsprite_unittest.cc
parentdc599c219c283a4f7517c8ffe1e781b9847ef045 (diff)
downloadplus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.gz
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.bz2
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.tar.xz
plus-cad3b1d8688b94b185ada0f0b313435ac4b3b457.zip
fix code style.
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);