[geos-commits] r4127 - trunk/tests/unit/io

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Dec 14 04:05:29 PST 2015


Author: strk
Date: 2015-12-14 04:05:29 -0800 (Mon, 14 Dec 2015)
New Revision: 4127

Modified:
   trunk/tests/unit/io/WKBWriterTest.cpp
Log:
Tweak WKB output test to do what's really said in the comments

Modified: trunk/tests/unit/io/WKBWriterTest.cpp
===================================================================
--- trunk/tests/unit/io/WKBWriterTest.cpp	2015-12-14 11:54:47 UTC (rev 4126)
+++ trunk/tests/unit/io/WKBWriterTest.cpp	2015-12-14 12:05:29 UTC (rev 4127)
@@ -145,6 +145,7 @@
     geoms->push_back( wktreader.read("POLYGON((0 0,1 0,1 1,0 1,0 0))") );
     geoms->back()->setSRID(4326);
     Geom *geom = gf->createGeometryCollection(geoms);
+    geom->setSRID(4326);
     std::stringstream result_stream;
 
     wkbwriter.setOutputDimension( 2 );
@@ -154,7 +155,7 @@
     delete geom;
 
     std::string actual = result_stream.str();
-    ensure_equals( actual, "0107000000010000000103000000010000000500000000000000000000000000000000000000000000000000F03F0000000000000000000000000000F03F000000000000F03F0000000000000000000000000000F03F00000000000000000000000000000000");
+    ensure_equals( actual, "0107000020E6100000010000000103000000010000000500000000000000000000000000000000000000000000000000F03F0000000000000000000000000000F03F000000000000F03F0000000000000000000000000000F03F00000000000000000000000000000000" );
 
   }
 



More information about the geos-commits mailing list