]> granicus.if.org Git - postgis/commitdiff
Improve the test for #1968 to also check duplicated components
authorSandro Santilli <strk@keybit.net>
Wed, 6 Mar 2013 18:37:50 +0000 (18:37 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 6 Mar 2013 18:37:50 +0000 (18:37 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11155 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/totopogeom.sql

index 29ae7ccba06a9ccda2360c61bf76d6eb87eed074..a2e6443e2446b566111a5c3de2b1adae9ac87e64 100644 (file)
@@ -170,7 +170,7 @@ select '#1790.3', ST_HausdorffDistance(inp.g, tg.g::geometry), ST_HausdorffDista
 
 -- http://trac.osgeo.org/postgis/ticket/1968
 with inp as ( select
-'MULTILINESTRING ((0 0, 10 0),(5 0, 5 5))'
+'MULTILINESTRING ((0 0, 10 0),(5 0, 5 5),(0 0, 5 0),(5 0, 10 0))'
 ::geometry as g ),
 tg as ( select totopogeom(g, 'tt', 3) as g from inp )
 SELECT '#1968', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;