Skip to content

Commit cbca984

Browse files
committed
Correcting tests from test_qgsrectangle.py
1 parent 81807d4 commit cbca984

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/src/python/test_qgsrectangle.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def testUnion(self):
179179
def testAsWktCoordinates(self):
180180
"""Test that we can get a proper wkt representation fo the rect"""
181181
rect1 = QgsRectangle( 0.0, 0.0, 5.0, 5.0)
182-
myExpectedWkt = ('0.0000000000000000 0.0000000000000000, '
183-
'5.0000000000000000 5.0000000000000000')
182+
myExpectedWkt = ('0.0 0.0, '
183+
'5.0 5.0')
184184
myWkt = rect1.asWktCoordinates()
185185
myMessage = ('Expected: %s\nGot: %s\n' %
186186
(myExpectedWkt, myWkt))
@@ -189,11 +189,11 @@ def testAsWktCoordinates(self):
189189
def testAsWktPolygon(self):
190190
"""Test that we can get a proper rect wkt polygon representation for rect"""
191191
rect1 = QgsRectangle( 0.0, 0.0, 5.0, 5.0)
192-
myExpectedWkt = ('POLYGON((0.0000000000000000 0.0000000000000000, '
193-
'5.0000000000000000 0.0000000000000000, '
194-
'5.0000000000000000 5.0000000000000000, '
195-
'0.0000000000000000 5.0000000000000000, '
196-
'0.0000000000000000 0.0000000000000000))')
192+
myExpectedWkt = ('POLYGON((0.0 0.0, '
193+
'5.0 0.0, '
194+
'5.0 5.0, '
195+
'0.0 5.0, '
196+
'0.0 0.0))')
197197
myWkt = rect1.asWktPolygon()
198198
myMessage = ('Expected: %s\nGot: %s\n' %
199199
(myExpectedWkt, myWkt))

0 commit comments

Comments
 (0)