From 5218b62655b877af64f9980efa668a1dcb82ed43 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Jul 2022 09:52:43 +1000 Subject: Add growSize argument to SplitVector constructor with default value so can be used more simply. Add default value to growSize argument of Partitioning to enable default construction. --- test/unit/testPartitioning.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/unit/testPartitioning.cxx b/test/unit/testPartitioning.cxx index b8989cdff..7e12c2ff0 100644 --- a/test/unit/testPartitioning.cxx +++ b/test/unit/testPartitioning.cxx @@ -22,8 +22,6 @@ using namespace Scintilla::Internal; -constexpr int growSize = 4; - constexpr int lengthTestArray = 8; static const int testArray[lengthTestArray] = {3, 4, 5, 6, 7, 8, 9, 10}; @@ -31,7 +29,7 @@ static const int testArray[lengthTestArray] = {3, 4, 5, 6, 7, 8, 9, 10}; TEST_CASE("SplitVectorWithRangeAdd") { - SplitVectorWithRangeAdd svwra(growSize); + SplitVectorWithRangeAdd svwra; SECTION("IsEmptyInitially") { REQUIRE(0 == svwra.Length()); @@ -54,7 +52,7 @@ TEST_CASE("SplitVectorWithRangeAdd") { TEST_CASE("Partitioning") { - Partitioning part(growSize); + Partitioning part; SECTION("IsEmptyInitially") { REQUIRE(1 == part.Partitions()); -- cgit v1.2.3