[geos-commits] r4013 - trunk/php/test
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Sep 19 01:11:16 PDT 2014
Author: strk
Date: 2014-09-19 01:11:16 -0700 (Fri, 19 Sep 2014)
New Revision: 4013
Modified:
trunk/php/test/test.php
Log:
Normalize voronoi diagram results for comparing to expected output
Modified: trunk/php/test/test.php
===================================================================
--- trunk/php/test/test.php 2014-09-19 08:02:29 UTC (rev 4012)
+++ trunk/php/test/test.php 2014-09-19 08:11:16 UTC (rev 4013)
@@ -2052,13 +2052,13 @@
$b = $g->voronoiDiagram(0, 1);
$this->assertEquals(
-'MULTILINESTRING ((50 50, 50 200), (200 50, 50 50), (50 50, -100 50), (50 50, 50 -100))'
- , $writer->write($b));
+'MULTILINESTRING ((50 50, 200 50), (50 50, 50 200), (50 -100, 50 50), (-100 50, 50 50))'
+ , $writer->write($b->normalize()));
$b = $g->voronoiDiagram(0, 1, $g->buffer(1000));
$this->assertEquals(
-'MULTILINESTRING ((50 50, 50 1100), (1100 50, 50 50), (50 50, -1000 50), (50 50, 50 -1000))'
- , $writer->write($b));
+'MULTILINESTRING ((50 50, 1100 50), (50 50, 50 1100), (50 -1000, 50 50), (-1000 50, 50 50))'
+ , $writer->write($b->normalize()));
}
More information about the geos-commits
mailing list