Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
lbartoletti committed Dec 8, 2021
1 parent f3452d8 commit 48d4cf6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/src/core/testqgsgeometry.cpp
Expand Up @@ -7357,15 +7357,13 @@ void TestQgsGeometry::triangle()
QGSCOMPARENEAR( angles.at( 2 ), 1.2490457, 0.0001 );
QgsTriangle t7( QgsPoint( 0, 0 ), QgsPoint( 0, 5 ), QgsPoint( 5, 5 ) );

QVector<double> a_tested, a_t7 = t7.angles();
QVector<double> a_t7 = t7.angles();
a_tested.append( M_PI / 4.0 );
a_tested.append( M_PI / 2.0 );
a_tested.append( M_PI / 4.0 );
QGSCOMPARENEAR( a_tested.at( 0 ), a_t7.at( 0 ), 0.0001 );
QGSCOMPARENEAR( a_tested.at( 1 ), a_t7.at( 1 ), 0.0001 );
QGSCOMPARENEAR( a_tested.at( 2 ), a_t7.at( 2 ), 0.0001 );
QVector<double> a_empty = QgsTriangle().angles();
QVERIFY( a_empty.isEmpty() );

QVector<double> l_tested, l_t7 = t7.lengths();
l_tested.append( 5 );
Expand Down

0 comments on commit 48d4cf6

Please sign in to comment.