// Unit Tests for Scintilla internal data structures #include #include #include "Platform.h" #include "SplitVector.h" #include "catch.hpp" // Test SplitVector. const int lengthTestArray = 4; static const int testArray[4] = {3, 4, 5, 6}; TEST_CASE("SplitVector") { SplitVector sv; SECTION("IsEmptyInitially") { REQUIRE(0 == sv.Length()); } SECTION("InsertOne") { sv.InsertValue(0, 10, 0); sv.Insert(5, 3); REQUIRE(11 == sv.Length()); for (int i=0; i=0; i--) { sv.InsertValue(i, 1, i+5); sv.Delete(i+1); } for (int i=0; i