aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-20 11:08:49 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-20 11:08:49 +1000
commit5d0ebf7f0e4a815121d5a10f2134a5bec52d7ba0 (patch)
tree81ab21b3c50f5c589e31bbe31bf193e6dc1e37bb /test
parentf762546cc4149cc6b4b3dadc023b410e5b093bc4 (diff)
downloadscintilla-mirror-5d0ebf7f0e4a815121d5a10f2134a5bec52d7ba0.tar.gz
Add DeleteAll method as quick way to clear everything.
Improves similarity to RunStyles.
Diffstat (limited to 'test')
-rw-r--r--test/unit/testSparseVector.cxx3
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();
}