summaryrefslogtreecommitdiff
path: root/test/source/sheet
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-05-29 16:00:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-29 22:46:25 +0200
commit1bb71226b89b88f4ebf5924ab80f213d738cf43e (patch)
tree9ddd80b4f2be7c7fc642929f4985a98f052d2429 /test/source/sheet
parent80f28e377db0ca04da57eed77d42f44cbdea363d (diff)
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@redhat.com>
Diffstat (limited to 'test/source/sheet')
-rw-r--r--test/source/sheet/xnamedrange.cxx8
1 files changed, 4 insertions, 4 deletions
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()