Skip to content

Commit

Permalink
Remove line segmentation test checking for control point containement
Browse files Browse the repository at this point in the history
There are more tests in dedicated file (testqgscurve.cpp)
  • Loading branch information
strk committed Aug 25, 2017
1 parent 5186c38 commit 650cf6a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/src/core/testqgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ class TestQgsGeometry : public QObject

void wkbInOut();

void segmentizeCircularString();
void directionNeutralSegmentation();
void poleOfInaccessibility();

Expand Down Expand Up @@ -5290,23 +5289,6 @@ void TestQgsGeometry::wkbInOut()
QCOMPARE( badHeader.wkbType(), QgsWkbTypes::Unknown );
}

void TestQgsGeometry::segmentizeCircularString()
{
QString wkt( QStringLiteral( "CIRCULARSTRING( 0 0, 0.5 0.5, 2 0 )" ) );
QgsCircularString *circularString = dynamic_cast<QgsCircularString *>( QgsGeometryFactory::geomFromWkt( wkt ).release() );
QVERIFY( circularString );
QgsLineString *lineString = circularString->curveToLine();
QVERIFY( lineString );
QgsPointSequence points;
lineString->points( points );

delete circularString;
delete lineString;

//make sure the curve point is part of the segmentized result
QVERIFY( points.contains( QgsPoint( 0.5, 0.5 ) ) );
}

void TestQgsGeometry::directionNeutralSegmentation()
{
//Tests, if segmentation of a circularstring is the same in both directions
Expand Down

0 comments on commit 650cf6a

Please sign in to comment.