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

Definition at line 68 of file cu_in_wkt.c.

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

Referenced by wkt_in_suite_setup().

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

Here is the call graph for this function:

Here is the caller graph for this function: