diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-02-22 21:28:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-02-23 07:04:09 +0000 |
commit | dc96de7c62e1e6f37ec485f3f0f564a00f3d01f4 (patch) | |
tree | 2f22076b18079daa2f79021463818de6facd71e4 /test | |
parent | 6d404f9ccad3ac6a7ffb83876ae7a656bc2d4547 (diff) |
Extend loplugin:cppunitassertequals to more argument types
Change-Id: Ic2990ebc2e4a9a36dcd3f90c5f634ca7dd225d52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147491
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/table/xtablerows.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/table/xtablerows.cxx b/test/source/table/xtablerows.cxx index c241b2bb88f6..f44a6fcbce46 100644 --- a/test/source/table/xtablerows.cxx +++ b/test/source/table/xtablerows.cxx @@ -32,7 +32,7 @@ void XTableRows::testInsertByIndex() xTableRows->removeByIndex(0, 1); xTableRows->insertByIndex(0, 1); - CPPUNIT_ASSERT_DOUBLES_EQUAL(xCellRange->getCellByPosition(0, 1)->getValue(), 15.0, 0.1); + CPPUNIT_ASSERT_DOUBLES_EQUAL(15.0, xCellRange->getCellByPosition(0, 1)->getValue(), 0.1); CPPUNIT_ASSERT_THROW(xTableRows->insertByIndex(-1, 1), uno::RuntimeException); } @@ -45,7 +45,7 @@ void XTableRows::testRemoveByIndex() uno::Reference<table::XTableRows> xTableRows(init(), uno::UNO_QUERY_THROW); xTableRows->removeByIndex(0, 1); - CPPUNIT_ASSERT_DOUBLES_EQUAL(xCellRange->getCellByPosition(0, 0)->getValue(), 15.0, 0.1); + CPPUNIT_ASSERT_DOUBLES_EQUAL(15.0, xCellRange->getCellByPosition(0, 0)->getValue(), 0.1); CPPUNIT_ASSERT_THROW(xTableRows->removeByIndex(-1, 1), uno::RuntimeException); } |