Skip to content
Permalink
Browse files

output full precision

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

0 comments on commit 40ec44c

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