aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testRunStyles.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2016-10-08 12:37:14 +1100
committerNeil <nyamatongwe@gmail.com>2016-10-08 12:37:14 +1100
commitde5f691441a5661286cfdec99de7b12ae42e7beb (patch)
treebd795777cdf87a73b92cf9dc23b03d8ea5d0971f /test/unit/testRunStyles.cxx
parent077e7b2292dac2c962c3af46678593de9327236b (diff)
downloadscintilla-mirror-de5f691441a5661286cfdec99de7b12ae42e7beb.tar.gz
Fix minor warnings in unit tests from MSVC 64-bit.
Diffstat (limited to 'test/unit/testRunStyles.cxx')
-rw-r--r--test/unit/testRunStyles.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/testRunStyles.cxx b/test/unit/testRunStyles.cxx
index 250b5c044..09a5b1cae 100644
--- a/test/unit/testRunStyles.cxx
+++ b/test/unit/testRunStyles.cxx
@@ -116,7 +116,7 @@ TEST_CASE("RunStyles") {
int startFill2 = 2;
int lengthFill2 = 1;
// Compiler warnings if 'false' used instead of '0' as expected value:
- REQUIRE(0 == rs.FillRange(startFill2, 99, lengthFill2));
+ REQUIRE(false == rs.FillRange(startFill2, 99, lengthFill2));
REQUIRE(2 == startFill2);
REQUIRE(1 == lengthFill2);
REQUIRE(0 == rs.ValueAt(0));
@@ -202,17 +202,17 @@ TEST_CASE("RunStyles") {
REQUIRE(true == rs.AllSame());
rs.InsertSpace(0, 5);
REQUIRE(true == rs.AllSame());
- REQUIRE(0 == rs.AllSameAs(88));
+ REQUIRE(false == rs.AllSameAs(88));
REQUIRE(true == rs.AllSameAs(0));
int startFill = 1;
int lengthFill = 3;
REQUIRE(true == rs.FillRange(startFill, 99, lengthFill));
- REQUIRE(0 == rs.AllSame());
- REQUIRE(0 == rs.AllSameAs(88));
- REQUIRE(0 == rs.AllSameAs(0));
+ REQUIRE(false == rs.AllSame());
+ REQUIRE(false == rs.AllSameAs(88));
+ REQUIRE(false == rs.AllSameAs(0));
REQUIRE(true == rs.FillRange(startFill, 0, lengthFill));
REQUIRE(true == rs.AllSame());
- REQUIRE(0 == rs.AllSameAs(88));
+ REQUIRE(false == rs.AllSameAs(88));
REQUIRE(true == rs.AllSameAs(0));
}