QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Macros
qgstestutils.h File Reference
#include "qgis.h"
#include "QtTest/qtestcase.h"
Include dependency graph for qgstestutils.h:

Go to the source code of this file.

Macros

#define QGSCOMPARENEAR(value, expected, epsilon)
 Assorted helper methods for unit testing. More...
 
#define QGSCOMPARENEARPOINT(point1, point2, epsilon)
 
#define QGSCOMPARENEARRECTANGLE(rectangle1, rectangle2, epsilon)
 

Macro Definition Documentation

◆ QGSCOMPARENEARPOINT

#define QGSCOMPARENEARPOINT (   point1,
  point2,
  epsilon 
)
Value:
{ \
QGSCOMPARENEAR( point1.x(), point2.x(), epsilon ); \
QGSCOMPARENEAR( point1.y(), point2.y(), epsilon ); \
}

Definition at line 35 of file qgstestutils.h.

◆ QGSCOMPARENEARRECTANGLE

#define QGSCOMPARENEARRECTANGLE (   rectangle1,
  rectangle2,
  epsilon 
)
Value:
{ \
QGSCOMPARENEAR( rectangle1.xMinimum(), rectangle2.xMinimum(), epsilon ); \
QGSCOMPARENEAR( rectangle1.xMaximum(), rectangle2.xMaximum(), epsilon ); \
QGSCOMPARENEAR( rectangle1.yMinimum(), rectangle2.yMinimum(), epsilon ); \
QGSCOMPARENEAR( rectangle1.yMaximum(), rectangle2.yMaximum(), epsilon ); \
}

Definition at line 40 of file qgstestutils.h.