Skip to content
Permalink
Browse files

Have QCOMPARE be more verbose about failure

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Feb 6, 2015
1 parent 88c928a commit e0116ef5d264dd9fce1e573db5d1e3803c76867e
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/src/gui/testqgsmapcanvas.cpp
@@ -5,6 +5,15 @@
#include <qgsmapcanvas.h>
#include <qgsmaprenderer.h>

namespace QTest
{
template<>
char* toString( const QgsRectangle& r ) {
QByteArray ba = r.toString().toLocal8Bit();
return qstrdup(ba.data());
}
}

class TestQgsMapCanvas : public QObject
{
Q_OBJECT

0 comments on commit e0116ef

Please sign in to comment.
You can’t perform that action at this time.