Skip to content

Commit

Permalink
Have QCOMPARE be more verbose about failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Feb 6, 2015
1 parent 88c928a commit e0116ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/gui/testqgsmapcanvas.cpp
Expand Up @@ -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
Expand Down

0 comments on commit e0116ef

Please sign in to comment.