summaryrefslogtreecommitdiff
path: root/sc/qa/unit/helper/qahelper.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/helper/qahelper.hxx')
-rw-r--r--sc/qa/unit/helper/qahelper.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index 9c1594efd961..7eb4d4553e75 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -162,6 +162,9 @@ public:
#define ASSERT_DOUBLES_EQUAL_MESSAGE( message, expected, result ) \
CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( (message), (expected), (result), 1e-14 )
+#define ASSERT_EQUAL_TYPE( type, expected, result ) \
+ CPPUNIT_ASSERT_EQUAL( static_cast<type>(expected), static_cast<type>(result) );
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */