[Libreoffice-commits] online.git: loolwsd/test

Tor Lillqvist tml at collabora.com
Thu Apr 14 14:09:06 UTC 2016


 loolwsd/test/httpwstest.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 066b48688ac11c1993a1d242fbc761f6c358ac2c
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Apr 14 17:06:43 2016 +0300

    Use the 'expected' and 'actual' parameters of CPPUNIT_ASSERT_EQUAL() correctly

diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 3529f73..950c98f 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -815,7 +815,7 @@ void HTTPWSTest::testImpressPartCountChanged()
             // Expected format is something like 'type= parts= current= width= height='.
             const std::string prefix = "parts=";
             const int totalParts = std::stoi(tokens[1].substr(prefix.size()));
-            CPPUNIT_ASSERT_EQUAL(totalParts, 1);
+            CPPUNIT_ASSERT_EQUAL(1, totalParts);
         }
 
         /* FIXME partscountchanged: was removed, update accordingly
@@ -889,7 +889,7 @@ void HTTPWSTest::testNoExtraLoolKitsLeft()
 {
     int countNow = countLoolKitProcesses();
 
-    CPPUNIT_ASSERT_EQUAL(countNow, _initialLoolKitCount);
+    CPPUNIT_ASSERT_EQUAL(_initialLoolKitCount, countNow);
 }
 
 void HTTPWSTest::sendTextFrame(Poco::Net::WebSocket& socket, const std::string& string)


More information about the Libreoffice-commits mailing list