sal/qa/rtl/math/test-rtl-math.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
New commits: commit 6a45259834818dc819f4eb63043d0ea2b3416ac2 Author: Caolán McNamara <[email protected]> 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 {
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
