Skip to content
Permalink
Browse files

Fix point test

  • Loading branch information
m-kuhn committed Jun 14, 2017
1 parent bd82ca3 commit 41892d3ecfed45ec8a3416b961b1e354aa3ffd0f
Showing with 13 additions and 13 deletions.
  1. +13 −13 tests/src/python/test_qgsgeometry.py
@@ -4142,28 +4142,28 @@ def testPoint(self):

point_z = QgsPoint(1, 2, 3)
self.assertEqual(point_z.wkbType(), QgsWkbTypes.PointZ)
self.assertEqual(point.x(), 1)
self.assertEqual(point.y(), 2)
self.assertEqual(point.z(), 3)
self.assertEqual(point_z.x(), 1)
self.assertEqual(point_z.y(), 2)
self.assertEqual(point_z.z(), 3)

point_z = QgsPoint(1, 2, 3, 4, wkbType=QgsWkbTypes.PointZ)
self.assertEqual(point_z.wkbType(), QgsWkbTypes.PointZ)
self.assertEqual(point.x(), 1)
self.assertEqual(point.y(), 2)
self.assertEqual(point.z(), 3)
self.assertEqual(point_z.x(), 1)
self.assertEqual(point_z.y(), 2)
self.assertEqual(point_z.z(), 3)

point_m = QgsPoint(1, 2, m=3)
self.assertEqual(point_m.wkbType(), QgsWkbTypes.PointM)
self.assertEqual(point.x(), 1)
self.assertEqual(point.y(), 2)
self.assertEqual(point.m(), 3)
self.assertEqual(point_m.x(), 1)
self.assertEqual(point_m.y(), 2)
self.assertEqual(point_m.m(), 3)

point_zm = QgsPoint(1, 2, 3, 4)
self.assertEqual(point_zm.wkbType(), QgsWkbTypes.PointZM)
self.assertEqual(point.x(), 1)
self.assertEqual(point.y(), 2)
self.assertEqual(point.z(), 3)
self.assertEqual(point.m(), 4)
self.assertEqual(point_zm.x(), 1)
self.assertEqual(point_zm.y(), 2)
self.assertEqual(point_zm.z(), 3)
self.assertEqual(point_zm.m(), 4)


if __name__ == '__main__':

0 comments on commit 41892d3

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