PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ test_wkt_double()

static void test_wkt_double ( void  )
static

Definition at line 356 of file cu_in_wkt.c.

357{
359 int rv = 0;
360 char *wkt = 0;
361
362 wkt = "LINESTRING(1.1.1, 2.2.2)";
365 CU_ASSERT( LW_FAILURE == rv );
366 CU_ASSERT( p.errcode );
367 CU_ASSERT( ! p.geom );
369
370 wkt = "LINESTRING(1.1 .1, 2.2 .2)";
373 CU_ASSERT_EQUAL( rv, LW_SUCCESS );
375
376 wkt = "LINESTRING( 1.1 .1 , 2.2 .2 )";
379 CU_ASSERT_EQUAL( rv, LW_SUCCESS );
381
382 wkt = "LINESTRING(\n1.1\n.1,\n2.2\n.2\n)";
385 CU_ASSERT_EQUAL( rv, LW_SUCCESS );
387
388 wkt = "LINESTRING(1.1\t.1\t,\t2.2\t.2\t)";
391 CU_ASSERT_EQUAL( rv, LW_SUCCESS );
393}
#define LW_PARSER_CHECK_ALL
Definition liblwgeom.h:2061
#define LW_FAILURE
Definition liblwgeom.h:110
#define LW_SUCCESS
Definition liblwgeom.h:111
void lwgeom_parser_result_init(LWGEOM_PARSER_RESULT *parser_result)
Definition lwin_wkt.c:880
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Definition lwin_wkt.c:886
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM.
Definition liblwgeom.h:2068

References struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::geom, LW_FAILURE, LW_PARSER_CHECK_ALL, LW_SUCCESS, lwgeom_parse_wkt(), lwgeom_parser_result_free(), and lwgeom_parser_result_init().

Referenced by wkt_in_suite_setup().

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