diff options
Diffstat (limited to 'test/unit/testSparseVector.cxx')
-rw-r--r-- | test/unit/testSparseVector.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/testSparseVector.cxx b/test/unit/testSparseVector.cxx index 288f671c1..5b50d24e4 100644 --- a/test/unit/testSparseVector.cxx +++ b/test/unit/testSparseVector.cxx @@ -210,6 +210,9 @@ TEST_CASE("SparseVector") { st.SetValueAt(3, UniqueStringCopy("3")); REQUIRE(5 == st.Elements()); REQUIRE("---34--7-9-" == Representation(st)); + st.DeleteAll(); + REQUIRE(1 == st.Elements()); + REQUIRE("-" == Representation(st)); st.Check(); } |