From 34ce63ca6b853724c152a116e1467c0eead87003 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Fri, 21 Mar 2014 20:14:05 +0000 Subject: Fix incorrect assert in r13895. git-svn-id: http://skia.googlecode.com/svn/trunk@13896 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/TArrayTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/TArrayTest.cpp') diff --git a/tests/TArrayTest.cpp b/tests/TArrayTest.cpp index f86cfe40f7..b85efcac07 100644 --- a/tests/TArrayTest.cpp +++ b/tests/TArrayTest.cpp @@ -19,7 +19,7 @@ static void TestTSet_basic(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, a.count() == 0); // { }, add a default constructed element - REPORTER_ASSERT(reporter, a.push_back()); + a.push_back() = 0; REPORTER_ASSERT(reporter, !a.empty()); REPORTER_ASSERT(reporter, a.count() == 1); @@ -29,7 +29,7 @@ static void TestTSet_basic(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, a.count() == 0); // { }, add a default, add a 1, remove first - REPORTER_ASSERT(reporter, a.push_back()); + a.push_back() = 0; REPORTER_ASSERT(reporter, a.push_back() = 1); a.removeShuffle(0); REPORTER_ASSERT(reporter, !a.empty()); -- cgit v1.2.3