diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 20:14:05 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 20:14:05 +0000 |
commit | 34ce63ca6b853724c152a116e1467c0eead87003 (patch) | |
tree | 574a7ef9deadb34157a80f760407e09abfdda68e | |
parent | 95ebd17cf4f66952862289882ee5ac00da31cb8a (diff) |
Fix incorrect assert in r13895.
git-svn-id: http://skia.googlecode.com/svn/trunk@13896 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | tests/TArrayTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |