Skip to content

Commit 650cf6a

Browse files
committedAug 25, 2017
Remove line segmentation test checking for control point containement
There are more tests in dedicated file (testqgscurve.cpp)
1 parent 5186c38 commit 650cf6a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed
 

‎tests/src/core/testqgsgeometry.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class TestQgsGeometry : public QObject
118118

119119
void wkbInOut();
120120

121-
void segmentizeCircularString();
122121
void directionNeutralSegmentation();
123122
void poleOfInaccessibility();
124123

@@ -5290,23 +5289,6 @@ void TestQgsGeometry::wkbInOut()
52905289
QCOMPARE( badHeader.wkbType(), QgsWkbTypes::Unknown );
52915290
}
52925291

5293-
void TestQgsGeometry::segmentizeCircularString()
5294-
{
5295-
QString wkt( QStringLiteral( "CIRCULARSTRING( 0 0, 0.5 0.5, 2 0 )" ) );
5296-
QgsCircularString *circularString = dynamic_cast<QgsCircularString *>( QgsGeometryFactory::geomFromWkt( wkt ).release() );
5297-
QVERIFY( circularString );
5298-
QgsLineString *lineString = circularString->curveToLine();
5299-
QVERIFY( lineString );
5300-
QgsPointSequence points;
5301-
lineString->points( points );
5302-
5303-
delete circularString;
5304-
delete lineString;
5305-
5306-
//make sure the curve point is part of the segmentized result
5307-
QVERIFY( points.contains( QgsPoint( 0.5, 0.5 ) ) );
5308-
}
5309-
53105292
void TestQgsGeometry::directionNeutralSegmentation()
53115293
{
53125294
//Tests, if segmentation of a circularstring is the same in both directions

0 commit comments

Comments
 (0)
Please sign in to comment.