From 8a70dcea8686a6b0e161143f19f9a53a8223ef68 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 May 2015 19:00:58 +0300 Subject: Fix tests. --- src/resources/mstack_unittest.cc | 4 ++-- 1 file 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 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); } -- cgit v1.2.3-70-g09d2