From b324e4dcee0ced34c4135f68faba0ff17812766a Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 20 Jul 2022 11:00:37 +1000 Subject: Fix setting end element empty. --- test/unit/testSparseVector.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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") { -- cgit v1.2.3