[Libreoffice-commits] core.git: basic/qa
Stephan Bergmann
sbergman at redhat.com
Mon Nov 30 02:49:55 PST 2015
basic/qa/cppunit/test_scanner.cxx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 88ab9d4aa09a8ce09fa4d03faefa32e57c530746
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Nov 30 11:49:15 2015 +0100
Get order of expected/actual args to CPPUNIT_ASSERT_EQUAL right
Change-Id: I0fa26417630991c6d07b5412fb579f9c222d09a6
diff --git a/basic/qa/cppunit/test_scanner.cxx b/basic/qa/cppunit/test_scanner.cxx
index ec5836e..af2ea88 100644
--- a/basic/qa/cppunit/test_scanner.cxx
+++ b/basic/qa/cppunit/test_scanner.cxx
@@ -118,14 +118,14 @@ namespace
CPPUNIT_ASSERT(symbols.empty());
symbols = getSymbols(source2);
- CPPUNIT_ASSERT_EQUAL(symbols.size(), size_t(1));
- CPPUNIT_ASSERT_EQUAL(symbols[0].text, cr);
- CPPUNIT_ASSERT_EQUAL(symbols[0].type, SbxVARIANT);
+ CPPUNIT_ASSERT_EQUAL(size_t(1), symbols.size());
+ CPPUNIT_ASSERT_EQUAL(cr, symbols[0].text);
+ CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[0].type);
symbols = getSymbols(source3);
- CPPUNIT_ASSERT_EQUAL(symbols.size(), size_t(1));
- CPPUNIT_ASSERT_EQUAL(symbols[0].text, cr);
- CPPUNIT_ASSERT_EQUAL(symbols[0].type, SbxVARIANT);
+ CPPUNIT_ASSERT_EQUAL(size_t(1), symbols.size());
+ CPPUNIT_ASSERT_EQUAL(cr, symbols[0].text);
+ CPPUNIT_ASSERT_EQUAL(SbxVARIANT, symbols[0].type);
symbols = getSymbols(source4);
CPPUNIT_ASSERT(symbols.size() == 1);
More information about the Libreoffice-commits
mailing list