diff options
author | Neil <nyamatongwe@gmail.com> | 2022-07-29 10:38:30 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-07-29 10:38:30 +1000 |
commit | f39d7ee7e7490d49f1c5b9e6315dd8e6e1d9db34 (patch) | |
tree | 3cbf454d237ae6dd1a374240da43842684b46525 /test/unit/testPartitioning.cxx | |
parent | cb3ef02e9c483596f3c146bc72325457e61d0b19 (diff) | |
download | scintilla-mirror-f39d7ee7e7490d49f1c5b9e6315dd8e6e1d9db34.tar.gz |
Use SplitVector directly instead of throughSplitVectorWithRangeAdd which was
only ever used by Partitioning.
Diffstat (limited to 'test/unit/testPartitioning.cxx')
-rw-r--r-- | test/unit/testPartitioning.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/unit/testPartitioning.cxx b/test/unit/testPartitioning.cxx index 7e12c2ff0..fc55b4da1 100644 --- a/test/unit/testPartitioning.cxx +++ b/test/unit/testPartitioning.cxx @@ -25,29 +25,6 @@ using namespace Scintilla::Internal; constexpr int lengthTestArray = 8; static const int testArray[lengthTestArray] = {3, 4, 5, 6, 7, 8, 9, 10}; -// Test SplitVectorWithRangeAdd. - -TEST_CASE("SplitVectorWithRangeAdd") { - - SplitVectorWithRangeAdd<int> svwra; - - SECTION("IsEmptyInitially") { - REQUIRE(0 == svwra.Length()); - } - - SECTION("IncrementExceptEnds") { - svwra.InsertFromArray(0, testArray, 0, lengthTestArray); - svwra.RangeAddDelta(1, lengthTestArray-1, 1); - for (int i=0; i<svwra.Length(); i++) { - if ((i == 0) || (i == lengthTestArray-1)) - REQUIRE((i+3) == svwra.ValueAt(i)); - else - REQUIRE((i+4) == svwra.ValueAt(i)); - } - } - -} - // Test Partitioning. TEST_CASE("Partitioning") { |