From: Sandro Santilli Date: Fri, 17 Feb 2012 08:39:55 +0000 (+0000) Subject: Add test numbers to ST_ChangeEdgeGeom regression cases X-Git-Tag: 2.0.0alpha6~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=982d30e9cd7eb0b2d7478ca4496fbc7fe14bacc1;p=postgis Add test numbers to ST_ChangeEdgeGeom regression cases git-svn-id: http://svn.osgeo.org/postgis/trunk@9223 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/test/regress/st_changeedgegeom.sql b/topology/test/regress/st_changeedgegeom.sql index d2278492f..af05e4288 100644 --- a/topology/test/regress/st_changeedgegeom.sql +++ b/topology/test/regress/st_changeedgegeom.sql @@ -4,7 +4,7 @@ set client_min_messages to ERROR; -- good one -SELECT topology.ST_ChangeEdgeGeom('city_data', 25, +SELECT 'T1', topology.ST_ChangeEdgeGeom('city_data', 25, 'LINESTRING(9 35, 11 33, 13 35)'); -- start/end points mismatch @@ -26,15 +26,15 @@ SELECT topology.ST_ChangeEdgeGeom('city_data', 25, 'LINESTRING(9 35, 11 40, 13 35)'); -- Test change in presence of edges sharing node (#1428) -SELECT topology.ST_ChangeEdgeGeom('city_data', 5, +SELECT 'T2', topology.ST_ChangeEdgeGeom('city_data', 5, 'LINESTRING(41 40, 57 33)'); -- Change to edge crossing old self -SELECT topology.ST_ChangeEdgeGeom('city_data', 5, +SELECT 'T3', topology.ST_ChangeEdgeGeom('city_data', 5, 'LINESTRING(41 40, 49 40, 49 34, 57 33)'); -- Change a closed edge -SELECT topology.ST_ChangeEdgeGeom('city_data', 26, +SELECT 'T4', topology.ST_ChangeEdgeGeom('city_data', 26, 'LINESTRING(4 31, 7 31, 4 34, 4 31)'); -- TODO: test reverse direction of closed edge diff --git a/topology/test/regress/st_changeedgegeom_expected b/topology/test/regress/st_changeedgegeom_expected index 3de3f8e57..3f5b1fee3 100644 --- a/topology/test/regress/st_changeedgegeom_expected +++ b/topology/test/regress/st_changeedgegeom_expected @@ -4,13 +4,13 @@ t 22 26 COMMIT -Edge 25 changed +T1|Edge 25 changed ERROR: SQL/MM Spatial exception - start node not geometry start point. ERROR: SQL/MM Spatial exception - end node not geometry end point. ERROR: SQL/MM Spatial exception - geometry crosses a node ERROR: SQL/MM Spatial exception - non-existent edge 666 ERROR: SQL/MM Spatial exception - geometry crosses an edge -Edge 5 changed -Edge 5 changed -Edge 26 changed +T2|Edge 5 changed +T3|Edge 5 changed +T4|Edge 26 changed Topology 'city_data' dropped