PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void test_wkt_in_point ( void  )
static

Definition at line 67 of file cu_in_wkt.c.

References cu_wkt_in(), lwfree(), r, s, WKT_ISO, and WKT_SFSQL.

Referenced by wkt_in_suite_setup().

68 {
69  s = "POINT(1e700 0)";
70  r = cu_wkt_in(s, WKT_SFSQL);
71  CU_TEST ( ! strcmp(r, "POINT(inf 0)") || ! strcmp(r, "POINT(1.#INF 0)") );
72  lwfree(r);
73 
74  s = "POINT(0 0)";
75  r = cu_wkt_in(s, WKT_SFSQL);
76  CU_ASSERT_STRING_EQUAL(r,s);
77  lwfree(r);
78 
79  s = "POINT EMPTY";
80  r = cu_wkt_in(s, WKT_SFSQL);
81  CU_ASSERT_STRING_EQUAL(r,s);
82  lwfree(r);
83 
84  s = "POINT M EMPTY";
85  r = cu_wkt_in(s, WKT_ISO);
86  CU_ASSERT_STRING_EQUAL(r,s);
87  lwfree(r);
88 
89  //printf("\nIN: %s\nOUT: %s\n",s,r);
90 }
char * r
Definition: cu_in_wkt.c:25
void lwfree(void *mem)
Definition: lwutil.c:190
#define WKT_ISO
Definition: liblwgeom.h:1776
char * s
Definition: cu_in_wkt.c:24
#define WKT_SFSQL
Definition: liblwgeom.h:1777
static char * cu_wkt_in(char *wkt, uint8_t variant)
Definition: cu_in_wkt.c:51

Here is the call graph for this function:

Here is the caller graph for this function: