diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-29 09:52:43 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-29 09:52:43 +1000 |
commit | 5218b62655b877af64f9980efa668a1dcb82ed43 (patch) | |
tree | 4a7eefd6dc0d9cad93e49e7e903fe16d272ae822 /test/unit/testPartitioning.cxx | |
parent | 2a5ffea80aacbd6353f4462300e42c8d55ac19e9 (diff) | |
download | scintilla-mirror-5218b62655b877af64f9980efa668a1dcb82ed43.tar.gz |
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.
Diffstat (limited to 'test/unit/testPartitioning.cxx')
-rw-r--r-- | test/unit/testPartitioning.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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<int> svwra(growSize); + SplitVectorWithRangeAdd<int> svwra; SECTION("IsEmptyInitially") { REQUIRE(0 == svwra.Length()); @@ -54,7 +52,7 @@ TEST_CASE("SplitVectorWithRangeAdd") { TEST_CASE("Partitioning") { - Partitioning<Sci::Position> part(growSize); + Partitioning<Sci::Position> part; SECTION("IsEmptyInitially") { REQUIRE(1 == part.Partitions()); |