Fix incorrect assert in r13895.

git-svn-id: http://skia.googlecode.com/svn/trunk@13896 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2014-03-21 20:14:05 +00:00
Родитель 95ebd17cf4
Коммит 34ce63ca6b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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());