We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1cb4adc commit cdf82a2Copy full SHA for cdf82a2
tests/src/core/testqgstracer.cpp
@@ -18,6 +18,7 @@
18
#include <qgsapplication.h>
19
#include <qgsgeometry.h>
20
#include <qgsmaplayerregistry.h>
21
+#include <qgstestutils.h>
22
#include <qgstracer.h>
23
#include <qgsvectorlayer.h>
24
@@ -344,9 +345,9 @@ void TestQgsTracer::testCurved()
344
345
double l = tmpG1->length();
346
delete tmpG1;
347
- // fuzzy comparison of QCOMPARE is too strict for this case
348
+ // fuzzy comparison as QCOMPARE is too strict for this case
349
double full_circle_length = 2 * M_PI * 10;
- QVERIFY( qAbs( l - full_circle_length / 4 ) < 0.01 );
350
+ QGSCOMPARENEAR( l, full_circle_length / 4, 0.01 );
351
352
QCOMPARE( points1[0], QgsPoint( 0, 0 ) );
353
QCOMPARE( points1[points1.count()-1], QgsPoint( 10, 10 ) );
0 commit comments