[Libreoffice-commits] .: sal/qa

Caolán McNamara caolan at kemper.freedesktop.org
Mon Oct 10 02:54:11 PDT 2011


 sal/qa/rtl/math/test-rtl-math.cxx |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

New commits:
commit 6a45259834818dc819f4eb63043d0ea2b3416ac2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Oct 10 10:52:05 2011 +0100

    WaE: -Wsign-promo

diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx
index 8dc463a..cde5d3e 100644
--- a/sal/qa/rtl/math/test-rtl-math.cxx
+++ b/sal/qa/rtl/math/test-rtl-math.cxx
@@ -38,6 +38,25 @@
 #include "rtl/ustring.hxx"
 #include "sal/types.h"
 
+CPPUNIT_NS_BEGIN
+
+template<> struct assertion_traits<rtl_math_ConversionStatus>
+{
+    static bool equal( const rtl_math_ConversionStatus& x, const rtl_math_ConversionStatus& y )
+    {
+        return x == y;
+    }
+
+    static std::string toString( const rtl_math_ConversionStatus& x )
+    {
+        OStringStream ost;
+        ost << static_cast<unsigned int>(x);
+        return ost.str();
+    }
+};
+
+CPPUNIT_NS_END
+
 namespace {
 
 class Test: public CppUnit::TestFixture {


More information about the Libreoffice-commits mailing list