From 021963773417da66df74d1d7bf22ee15db9292dd Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 1 Jun 2020 22:39:26 +0100 Subject: [PATCH] Fix resize_for_index test --- renderdoc/replay/basic_types_tests.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/renderdoc/replay/basic_types_tests.cpp b/renderdoc/replay/basic_types_tests.cpp index 8a1aeb6f0..f90c66021 100644 --- a/renderdoc/replay/basic_types_tests.cpp +++ b/renderdoc/replay/basic_types_tests.cpp @@ -476,28 +476,28 @@ TEST_CASE("Test array type", "[basictypes]") test.resize_for_index(5); - CHECK(test.size() == 5); - CHECK(test.capacity() >= 5); + CHECK(test.size() == 6); + CHECK(test.capacity() >= 6); test.resize_for_index(5); - CHECK(test.size() == 5); - CHECK(test.capacity() >= 5); + CHECK(test.size() == 6); + CHECK(test.capacity() >= 6); test.resize_for_index(3); - CHECK(test.size() == 5); - CHECK(test.capacity() >= 5); + CHECK(test.size() == 6); + CHECK(test.capacity() >= 6); test.resize_for_index(0); - CHECK(test.size() == 5); - CHECK(test.capacity() >= 5); + CHECK(test.size() == 6); + CHECK(test.capacity() >= 6); test.resize_for_index(9); - CHECK(test.size() == 9); - CHECK(test.capacity() >= 9); + CHECK(test.size() == 10); + CHECK(test.capacity() >= 10); }; SECTION("Check construction")