PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_empty()

static void test_empty ( void  )
static

Definition at line 66 of file cu_minimum_bounding_circle.c.

References LW_PARSER_CHECK_NONE, lwgeom_calculate_mbc(), lwgeom_free(), lwgeom_from_wkt(), and minimum_bounding_circle_suite_setup().

Referenced by minimum_bounding_circle_suite_setup().

67 {
68  LWGEOM* input = lwgeom_from_wkt("POINT EMPTY", LW_PARSER_CHECK_NONE);
69 
70  LWBOUNDINGCIRCLE* result = lwgeom_calculate_mbc(input);
71  CU_ASSERT_TRUE(result == NULL);
72 
73  lwgeom_free(input);
74 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
LWBOUNDINGCIRCLE * lwgeom_calculate_mbc(const LWGEOM *g)
Here is the call graph for this function:
Here is the caller graph for this function: