Kaydet (Commit) ddf7e2c1 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

make handling of doubles in sc tests easier

Change-Id: Ifc8def986f7d1659d71be7b4716bd9ab5fa4647e
üst fdbf9a25
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
* instead of those above. * instead of those above.
*/ */
#ifndef SC_DEBUG_HELPER_HXX
#define SC_DEBUG_HELPER_HXX
/** /**
* Print nicely formatted sheet content to stdout. Indispensable when * Print nicely formatted sheet content to stdout. Indispensable when
* debugging the unit test code involving testing of sheet contents. * debugging the unit test code involving testing of sheet contents.
...@@ -161,4 +164,6 @@ private: ...@@ -161,4 +164,6 @@ private:
MatrixType maMatrix; MatrixType maMatrix;
}; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -122,6 +122,12 @@ void testCondFile(rtl::OUString& aFileName, ScDocument* pDoc, SCTAB nTab) ...@@ -122,6 +122,12 @@ void testCondFile(rtl::OUString& aFileName, ScDocument* pDoc, SCTAB nTab)
} }
#define ASSERT_DOUBLES_EQUAL( expected, result ) \
CPPUNIT_ASSERT_DOUBLES_EQUAL( (expected), (result), 1e-14 )
#define ASSERT_DOUBLES_EQUAL_MESSAGE( message, expected, result ) \
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( (message), (expected), (result), 1e-14 )
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment