[mapguide-commits] r9617 - sandbox/jng/mvt_alt/Server/src/UnitTesting

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Sep 21 18:35:43 PDT 2019


Author: jng
Date: 2019-09-21 18:35:43 -0700 (Sat, 21 Sep 2019)
New Revision: 9617

Modified:
   sandbox/jng/mvt_alt/Server/src/UnitTesting/TestMisc.cpp
Log:
This LineBuffer conversion test is proving to be most useful! Verify that for multi-geometries, we are getting correct contour counts.

Modified: sandbox/jng/mvt_alt/Server/src/UnitTesting/TestMisc.cpp
===================================================================
--- sandbox/jng/mvt_alt/Server/src/UnitTesting/TestMisc.cpp	2019-09-22 01:30:41 UTC (rev 9616)
+++ sandbox/jng/mvt_alt/Server/src/UnitTesting/TestMisc.cpp	2019-09-22 01:35:43 UTC (rev 9617)
@@ -1014,6 +1014,8 @@
             lb.LoadFromAgf(bytes->Bytes(), bytes->GetLength(), nullptr);
 
             CPPUNIT_ASSERT(2 == lb.geom_count());
+            CPPUNIT_ASSERT(1 == lb.geom_size(0));
+            CPPUNIT_ASSERT(1 == lb.geom_size(1));
             CPPUNIT_ASSERT(2 == lb.cntr_count());
             CPPUNIT_ASSERT(3 == lb.cntr_size(0));
             CPPUNIT_ASSERT(4 == lb.cntr_size(1));
@@ -1082,6 +1084,7 @@
             lb.LoadFromAgf(bytes->Bytes(), bytes->GetLength(), nullptr);
 
             CPPUNIT_ASSERT(1 == lb.geom_count());
+            CPPUNIT_ASSERT(1 == lb.geom_size(0));
             auto cc = lb.cntr_count();
             CPPUNIT_ASSERT(1 == cc);
 
@@ -1128,6 +1131,7 @@
             lb.LoadFromAgf(bytes->Bytes(), bytes->GetLength(), nullptr);
 
             CPPUNIT_ASSERT(1 == lb.geom_count());
+            CPPUNIT_ASSERT(2 == lb.geom_size(0));
             auto cc = lb.cntr_count();
             CPPUNIT_ASSERT(2 == cc);
 
@@ -1205,6 +1209,8 @@
             lb.LoadFromAgf(bytes->Bytes(), bytes->GetLength(), nullptr);
 
             CPPUNIT_ASSERT(2 == lb.geom_count());
+            CPPUNIT_ASSERT(1 == lb.geom_size(0));
+            CPPUNIT_ASSERT(1 == lb.geom_size(1));
             auto cc = lb.cntr_count();
             CPPUNIT_ASSERT(2 == cc);
             auto closed1 = lb.contour_closed(0);
@@ -1295,6 +1301,8 @@
             lb.LoadFromAgf(bytes->Bytes(), bytes->GetLength(), nullptr);
 
             CPPUNIT_ASSERT(2 == lb.geom_count());
+            CPPUNIT_ASSERT(1 == lb.geom_size(0));
+            CPPUNIT_ASSERT(2 == lb.geom_size(1));
             auto cc = lb.cntr_count();
             CPPUNIT_ASSERT(3 == cc);
             auto closed1 = lb.contour_closed(0);



More information about the mapguide-commits mailing list