Skip to content

Commit e0116ef

Browse files
author
Sandro Santilli
committedFeb 6, 2015
Have QCOMPARE be more verbose about failure
1 parent 88c928a commit e0116ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎tests/src/gui/testqgsmapcanvas.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
#include <qgsmapcanvas.h>
66
#include <qgsmaprenderer.h>
77

8+
namespace QTest
9+
{
10+
template<>
11+
char* toString( const QgsRectangle& r ) {
12+
QByteArray ba = r.toString().toLocal8Bit();
13+
return qstrdup(ba.data());
14+
}
15+
}
16+
817
class TestQgsMapCanvas : public QObject
918
{
1019
Q_OBJECT

0 commit comments

Comments
 (0)
Please sign in to comment.