Skip to content
Permalink
Browse files

Remove line segmentation test checking for control point containement

There are more tests in dedicated file (testqgscurve.cpp)
  • Loading branch information
strk committed Aug 25, 2017
1 parent 5186c38 commit 650cf6a3fd390469d65f6e719a5f2346232e40d8
Showing with 0 additions and 18 deletions.
  1. +0 −18 tests/src/core/testqgsgeometry.cpp
@@ -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

0 comments on commit 650cf6a

Please sign in to comment.
You can’t perform that action at this time.