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 @@
* instead of those above.
*/
#ifndef SC_DEBUG_HELPER_HXX
#define SC_DEBUG_HELPER_HXX
/**
* Print nicely formatted sheet content to stdout. Indispensable when
* debugging the unit test code involving testing of sheet contents.
......@@ -161,4 +164,6 @@ private:
MatrixType maMatrix;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -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
/* 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