From de5f691441a5661286cfdec99de7b12ae42e7beb Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 8 Oct 2016 12:37:14 +1100 Subject: Fix minor warnings in unit tests from MSVC 64-bit. --- test/unit/testContractionState.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/unit/testContractionState.cxx') 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)); -- cgit v1.2.3