summaryrefslogtreecommitdiff
path: root/src/resources/mstack_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-15 19:00:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-15 19:00:58 +0300
commit8a70dcea8686a6b0e161143f19f9a53a8223ef68 (patch)
tree051558829e9043a333bc156fdce2e7edade12f1c /src/resources/mstack_unittest.cc
parent430f472b0e358ebb2cc7f2113c606f2ea03f7739 (diff)
downloadManaVerse-8a70dcea8686a6b0e161143f19f9a53a8223ef68.tar.gz
ManaVerse-8a70dcea8686a6b0e161143f19f9a53a8223ef68.tar.bz2
ManaVerse-8a70dcea8686a6b0e161143f19f9a53a8223ef68.tar.xz
ManaVerse-8a70dcea8686a6b0e161143f19f9a53a8223ef68.zip
Fix tests.
Diffstat (limited to 'src/resources/mstack_unittest.cc')
-rw-r--r--src/resources/mstack_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mstack_unittest.cc b/src/resources/mstack_unittest.cc
index 6146f28e5..0a2a9caaf 100644
--- a/src/resources/mstack_unittest.cc
+++ b/src/resources/mstack_unittest.cc
@@ -63,8 +63,8 @@ TEST(mstack, push3)
MStack<ClipRect> stack(10);
ClipRect &val1 = stack.push();
val1.xOffset = 10;
- val1 = stack.top();
- EXPECT_EQ(10, val1.xOffset);
+ ClipRect &val2 = stack.top();
+ EXPECT_EQ(10, val2.xOffset);
EXPECT_EQ(10, stack.mStack[0].xOffset);
}