From 9a63882cd4ebf01ed3ec5fba067e5f3e901f6ad2 Mon Sep 17 00:00:00 2001 From: Jingyu Zhou Date: Thu, 30 Jul 2020 11:01:52 -0700 Subject: [PATCH] Fix unit test failure --- flow/Arena.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/Arena.cpp b/flow/Arena.cpp index b02f900b20..7a6dfed0f2 100644 --- a/flow/Arena.cpp +++ b/flow/Arena.cpp @@ -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)));