Remove line segmentation test checking for control point containement

There are more tests in dedicated file (testqgscurve.cpp)
This commit is contained in:
Sandro Santilli 2017-08-25 21:14:11 +02:00
parent 5186c385c4
commit 650cf6a3fd

View File

@ -118,7 +118,6 @@ class TestQgsGeometry : public QObject
void wkbInOut();
void segmentizeCircularString();
void directionNeutralSegmentation();
void poleOfInaccessibility();
@ -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