aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testSparseVector.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-20 11:00:37 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-20 11:00:37 +1000
commitb324e4dcee0ced34c4135f68faba0ff17812766a (patch)
tree67ab8d8d6d0ecba3127f99467878606867a0aeb8 /test/unit/testSparseVector.cxx
parentcd203ffde6b18ecabd7371ca839afc6c779913b4 (diff)
downloadscintilla-mirror-b324e4dcee0ced34c4135f68faba0ff17812766a.tar.gz
Fix setting end element empty.
Diffstat (limited to 'test/unit/testSparseVector.cxx')
-rw-r--r--test/unit/testSparseVector.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/testSparseVector.cxx b/test/unit/testSparseVector.cxx
index 0bc8f9093..5756b8de0 100644
--- a/test/unit/testSparseVector.cxx
+++ b/test/unit/testSparseVector.cxx
@@ -179,6 +179,10 @@ TEST_CASE("SparseVector") {
REQUIRE(1 == st.Elements());
REQUIRE("------" == Representation(st));
st.Check();
+ st.SetValueAt(5, nullptr);
+ REQUIRE(1 == st.Elements());
+ REQUIRE("------" == Representation(st));
+ st.Check();
}
SECTION("CheckDeletionLeavesOrdered") {