PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ test_twkb_in_collection()

static void test_twkb_in_collection ( void  )
static

Definition at line 180 of file cu_in_twkb.c.

181 {
182  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))");
183  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
184 
185  cu_twkb_in("GEOMETRYCOLLECTION(POLYGON((0 0 0,0 1 0,1 1 0,1 0 0,0 0 0)),POINT(1 1 1))");
186  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
187 
188  cu_twkb_in("GEOMETRYCOLLECTION EMPTY");
189  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
190 
191  cu_twkb_in("GEOMETRYCOLLECTION(POINT(1 2 3), LINESTRING EMPTY, POINT(4 5 6))");
192  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
193 
194  cu_twkb_in("GEOMETRYCOLLECTION(POINT(1 2 3), POINT EMPTY, POINT(4 5 6))");
195  CU_ASSERT_STRING_EQUAL(hex_a, hex_b);
196 }
static char * hex_a
Definition: cu_in_twkb.c:23
static void cu_twkb_in(char *wkt)
Definition: cu_in_twkb.c:53
static char * hex_b
Definition: cu_in_twkb.c:24

References cu_twkb_in(), hex_a, and hex_b.

Referenced by twkb_in_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: