diff options
author | Neil <nyamatongwe@gmail.com> | 2016-10-08 12:37:14 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-10-08 12:37:14 +1100 |
commit | de5f691441a5661286cfdec99de7b12ae42e7beb (patch) | |
tree | bd795777cdf87a73b92cf9dc23b03d8ea5d0971f /test/unit/testContractionState.cxx | |
parent | 077e7b2292dac2c962c3af46678593de9327236b (diff) | |
download | scintilla-mirror-de5f691441a5661286cfdec99de7b12ae42e7beb.tar.gz |
Fix minor warnings in unit tests from MSVC 64-bit.
Diffstat (limited to 'test/unit/testContractionState.cxx')
-rw-r--r-- | test/unit/testContractionState.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/testContractionState.cxx b/test/unit/testContractionState.cxx index 58466426d..2bf4854c3 100644 --- a/test/unit/testContractionState.cxx +++ b/test/unit/testContractionState.cxx @@ -67,10 +67,10 @@ TEST_CASE("ContractionState") { cs.SetVisible(1, 1, false); REQUIRE(true == cs.GetVisible(0)); - REQUIRE(0 == cs.GetVisible(1)); + REQUIRE(false == cs.GetVisible(1)); REQUIRE(true == cs.GetVisible(2)); REQUIRE(4 == cs.LinesDisplayed()); - REQUIRE(1 == cs.HiddenLines()); + REQUIRE(true == cs.HiddenLines()); cs.SetVisible(1, 2, true); for (int l=0;l<4;l++) { @@ -78,12 +78,12 @@ TEST_CASE("ContractionState") { } cs.SetVisible(1, 1, false); - REQUIRE(0 == cs.GetVisible(1)); + REQUIRE(false == cs.GetVisible(1)); cs.ShowAll(); for (int l=0;l<4;l++) { REQUIRE(true == cs.GetVisible(0)); } - REQUIRE(0 == cs.HiddenLines()); + REQUIRE(false == cs.HiddenLines()); } SECTION("Hidden") { @@ -91,18 +91,18 @@ TEST_CASE("ContractionState") { for (int l=0;l<2;l++) { REQUIRE(true == cs.GetVisible(0)); } - REQUIRE(0 == cs.HiddenLines()); + REQUIRE(false == cs.HiddenLines()); cs.SetVisible(1, 1, false); REQUIRE(true == cs.GetVisible(0)); - REQUIRE(0 == cs.GetVisible(1)); - REQUIRE(1 == cs.HiddenLines()); + REQUIRE(false == cs.GetVisible(1)); + REQUIRE(true == cs.HiddenLines()); cs.SetVisible(1, 1, true); for (int l=0;l<2;l++) { REQUIRE(true == cs.GetVisible(0)); } - REQUIRE(0 == cs.HiddenLines()); + REQUIRE(false == cs.HiddenLines()); } SECTION("Contracting") { @@ -113,7 +113,7 @@ TEST_CASE("ContractionState") { cs.SetExpanded(2, false); REQUIRE(true == cs.GetExpanded(1)); - REQUIRE(0 == cs.GetExpanded(2)); + REQUIRE(false == cs.GetExpanded(2)); REQUIRE(true == cs.GetExpanded(3)); REQUIRE(2 == cs.ContractedNext(0)); |