/* end #3393 */
}
+static void test_gbox_to_string_truncated(void)
+{
+ GBOX g = {
+ .flags = 0,
+ .xmin = -DBL_MAX,
+ .xmax = -DBL_MAX,
+ .ymin = -DBL_MAX,
+ .ymax = -DBL_MAX,
+ .zmin = -DBL_MAX,
+ .zmax = -DBL_MAX,
+ .mmin = -DBL_MAX,
+ .mmax = -DBL_MAX,
+ };
+ FLAGS_SET_Z(g.flags, 1);
+ FLAGS_SET_M(g.flags, 1);
+ char *c = gbox_to_string(&g);
+
+ ASSERT_STRING_EQUAL(c, "GBOX((-1.7976931e+308,-1.7976931e+308,-1.7976931e+308,-1.7976931e+308),(-1.7976931e+308,-1.7976931e+308,-1.7976931e+308,-1.7976931e+308))");
+
+ lwfree(c);
+}
+
/*
** Used by test harness to register the tests in this file.
*/
PG_ADD_TEST(suite, test_lwgeom_segmentize_sphere);
PG_ADD_TEST(suite, test_ptarray_contains_point_sphere);
PG_ADD_TEST(suite, test_ptarray_contains_point_sphere_iowa);
+ PG_ADD_TEST(suite, test_gbox_to_string_truncated);
}