Skip to content
Permalink
Browse files

output full precision

  • Loading branch information
3nids committed Oct 26, 2018
1 parent 5566560 commit de1fff13e14a231b0bc884141062526941597d0e
Showing with 12 additions and 3 deletions.
  1. +12 −3 python/testing/__init__.py
@@ -218,12 +218,21 @@ def checkGeometriesEqual(self, geom0, geom1, geom0_id, geom1_id, use_asserts=Fal
if use_asserts:
_TestCase.assertTrue(
self,
equal,
'Features (Expected fid: {}, Result fid: {}) differ in geometry: \n\n Expected geometry:\n {}\n\n Result geometry:\n {}'.format(
equal, ''
' Features (Expected fid: {}, Result fid: {}) differ in geometry: \n\n'
' At given precision ({}):\n'
' Expected geometry: {}\n'
' Result geometry: {}\n\n'
' Full precision:\n'
' Expected geometry : {}\n'
' Result geometry: {}\n\n'.format(
geom0_id,
geom1_id,
precision,
geom0.constGet().asWkt(precision) if not geom0.isNull() else 'NULL',
geom1.constGet().asWkt(precision) if not geom1.isNull() else 'NULL'
geom1.constGet().asWkt(precision) if not geom1.isNull() else 'NULL',
geom0.constGet().asWkt() if not geom1.isNull() else 'NULL',
geom1.constGet().asWkt() if not geom0.isNull() else 'NULL'
)
)
else:

0 comments on commit de1fff1

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