Fix unit test failure

This commit is contained in:
Jingyu Zhou 2020-07-30 11:01:52 -07:00
parent 1bd6ea51ac
commit 9a63882cd4
1 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ void testIteratorIncrement() {
i += 2;
}
}
{
if (size > 0) {
int i = xs.size() - 1;
for (auto iter = xs.end() - 1; iter >= xs.begin();) {
ASSERT(*iter == StringRef(std::to_string(i)));
@ -454,7 +454,7 @@ void testIteratorIncrement() {
i += 2;
}
}
{
if (size > 0) {
int i = xs.size() - 1;
for (auto iter = xs.end() - 1; iter >= xs.begin();) {
ASSERT(*iter == StringRef(std::to_string(i)));