Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5e7e49f

Browse files
committedNov 14, 2018
output full precision
1 parent a920a79 commit 5e7e49f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed
 

‎python/testing/__init__.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,22 @@ def checkGeometriesEqual(self, geom0, geom1, geom0_id, geom1_id, use_asserts=Fal
218218
if use_asserts:
219219
_TestCase.assertTrue(
220220
self,
221-
equal,
222-
'Features (Expected fid: {}, Result fid: {}) differ in geometry: \n\n Expected geometry:\n {}\n\n Result geometry:\n {}'.format(
221+
equal, ''
222+
' Features (Expected fid: {}, Result fid: {}) differ in geometry with method {}: \n\n'
223+
' At given precision ({}):\n'
224+
' Expected geometry: {}\n'
225+
' Result geometry: {}\n\n'
226+
' Full precision:\n'
227+
' Expected geometry : {}\n'
228+
' Result geometry: {}\n\n'.format(
223229
geom0_id,
224230
geom1_id,
231+
'geos' if topo_equal_check else 'wkt',
232+
precision,
225233
geom0.constGet().asWkt(precision) if not geom0.isNull() else 'NULL',
226-
geom1.constGet().asWkt(precision) if not geom1.isNull() else 'NULL'
234+
geom1.constGet().asWkt(precision) if not geom1.isNull() else 'NULL',
235+
geom0.constGet().asWkt() if not geom1.isNull() else 'NULL',
236+
geom1.constGet().asWkt() if not geom0.isNull() else 'NULL'
227237
)
228238
)
229239
else:

0 commit comments

Comments
 (0)
Please sign in to comment.