PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_twkb_in_collection()

static void test_twkb_in_collection ( void  )
static

Definition at line 182 of file cu_in_twkb.c.

References cu_twkb_in(), hex_a, and hex_b.

Referenced by twkb_in_suite_setup().

183 {
184  cu_twkb_in("GEOMETRYCOLLECTION(MULTIPOLYGON(((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0))),POLYGON((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0)),POINT(1 1 1),LINESTRING(0 0 0, 1 1 1))");
185  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
186 
187  cu_twkb_in("GEOMETRYCOLLECTION(POLYGON((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0)),POINT(1 1 1))");
188  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
189 
190  cu_twkb_in("GEOMETRYCOLLECTION EMPTY");
191  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
192 
193  cu_twkb_in("GEOMETRYCOLLECTION(POINT(1 2 3), LINESTRING EMPTY, POINT(4 5 6))");
194  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
195 
196  cu_twkb_in("GEOMETRYCOLLECTION(POINT(1 2 3), POINT EMPTY, POINT(4 5 6))");
197  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
198 }
char * hex_b
Definition: cu_in_twkb.c:24
static void cu_twkb_in(char *wkt)
Definition: cu_in_twkb.c:53
char * hex_a
Definition: cu_in_twkb.c:23
Here is the call graph for this function:
Here is the caller graph for this function: