aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-07-17 14:09:52 +1000
committerZufu Liu <unknown>2022-07-17 14:09:52 +1000
commitf6a9859562ddeb04e882e4a3d15adbf64345452a (patch)
treef814dc8f40ea08c5d01d110ffb69a491806eea36 /test
parent4e0683e5531aa99958fc742476b6150ec2595c72 (diff)
downloadscintilla-mirror-f6a9859562ddeb04e882e4a3d15adbf64345452a.tar.gz
Feature [feature-requests:#1441] Line state optimized to avoid excess allocations
by always allocating for every line.
Diffstat (limited to 'test')
-rw-r--r--test/unit/testPerLine.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/testPerLine.cxx b/test/unit/testPerLine.cxx
index 5209c194e..74881f40e 100644
--- a/test/unit/testPerLine.cxx
+++ b/test/unit/testPerLine.cxx
@@ -226,11 +226,11 @@ TEST_CASE("LineState") {
}
SECTION("SetLineState") {
- REQUIRE(0 == ls.SetLineState(1, 200));
+ REQUIRE(0 == ls.SetLineState(1, 200, 2));
REQUIRE(0 == ls.GetLineState(0));
REQUIRE(200 == ls.GetLineState(1));
REQUIRE(0 == ls.GetLineState(2));
- REQUIRE(0 == ls.SetLineState(2, 400));
+ REQUIRE(0 == ls.SetLineState(2, 400, 3));
REQUIRE(0 == ls.GetLineState(0));
REQUIRE(200 == ls.GetLineState(1));
REQUIRE(400 == ls.GetLineState(2));
@@ -244,11 +244,11 @@ TEST_CASE("LineState") {
SECTION("InsertRemoveLine") {
REQUIRE(0 == ls.GetMaxLineState());
- ls.SetLineState(1, 1);
- ls.SetLineState(2, 2);
- REQUIRE(3 == ls.GetMaxLineState());
- ls.InsertLine(2);
+ ls.SetLineState(1, 1, 3);
+ ls.SetLineState(2, 2, 3);
REQUIRE(4 == ls.GetMaxLineState());
+ ls.InsertLine(2);
+ REQUIRE(5 == ls.GetMaxLineState());
REQUIRE(0 == ls.GetLineState(0));
REQUIRE(1 == ls.GetLineState(1));
REQUIRE(2 == ls.GetLineState(2));