[Libreoffice-commits] core.git: test/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 29 20:47:00 UTC 2020
test/source/sheet/xnamedrange.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 1bb71226b89b88f4ebf5924ab80f213d738cf43e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri May 29 16:00:12 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri May 29 22:46:25 2020 +0200
Fix order of some CPPUNIT_ASSERT_EQUAL arguments
"aExpectedContent" apparently denotes the expected value, which goes first.
Change-Id: I3d902cb9bd4bbd19e466dd53e68130857b3be7c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95151
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/test/source/sheet/xnamedrange.cxx b/test/source/sheet/xnamedrange.cxx
index 3647a859b81d..f75174560fdf 100644
--- a/test/source/sheet/xnamedrange.cxx
+++ b/test/source/sheet/xnamedrange.cxx
@@ -26,7 +26,7 @@ void XNamedRange::testGetContent()
uno::Reference< sheet::XNamedRange > xNamedRange = getNamedRange("initial1");
OUString const aExpectedContent("$Sheet1.$B$1");
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 on GetContent", xNamedRange->getContent(), aExpectedContent);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 on GetContent", aExpectedContent, xNamedRange->getContent());
}
void XNamedRange::testSetContent()
@@ -38,18 +38,18 @@ void XNamedRange::testSetContent()
// test a cell
aExpectedContent = "D1";
xNamedRange->setContent(aExpectedContent);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cell", xNamedRange->getContent(), aExpectedContent);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cell", aExpectedContent, xNamedRange->getContent());
// test a cellrange
aExpectedContent = "D1:D10";
xNamedRange->setContent(aExpectedContent);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cellrange", xNamedRange->getContent(), aExpectedContent);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a cellrange", aExpectedContent, xNamedRange->getContent());
// test a formula
aExpectedContent = "=D10";
xNamedRange->setContent(aExpectedContent);
aExpectedContent = "D10";
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a formula", xNamedRange->getContent(), aExpectedContent);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong expected content for initial1 after SetContent a formula", aExpectedContent, xNamedRange->getContent());
}
void XNamedRange::testGetType()
More information about the Libreoffice-commits
mailing list