Skip to content

Commit

Permalink
test: update failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <[email protected]>
Signed-off-by: manticore-projects <[email protected]>
  • Loading branch information
manticore-projects committed Dec 8, 2024
1 parent f001573 commit 131c3ab
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ SELECT ST_Disjoint(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0),(2 2,2 5,5
-- provided
SELECT ST_Distance(ST_GeomFromText('POLYGON((0 2,1 1,0 -1,0 2))'), ST_GeomFromText('POLYGON((-1 -3,-2 -1,0 -3,-1 -3))')) d;

-- expected
SELECT ST_DISTANCE(ST_FLIPCOORDINATES(ST_GEOMFROMTEXT('POLYGON((0 2,1 1,0-1,0 2))')),ST_FLIPCOORDINATES(ST_GEOMFROMTEXT('POLYGON((-1-3,-2-1,0-3,-1-3))')))D;

-- result
"d"
"1.414213562"
Expand Down Expand Up @@ -365,6 +368,9 @@ SELECT ST_IsValid(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0),(5 0,10 5,5
-- provided
SELECT ST_Length(ST_GeomFromText('MULTILINESTRING((0 0,10 0,0 10),(10 0,20 0,20 10))')) l;

-- expected
SELECT ST_LENGTH(ST_FLIPCOORDINATES(ST_GEOMFROMTEXT('MULTILINESTRING((0 0,10 0,0 10),(10 0,20 0,20 10))')))L;

-- result
"l"
"44.142135624"
Expand Down Expand Up @@ -486,6 +492,9 @@ SELECT ST_NumPoints(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29
-- provided
SELECT ST_Perimeter(ST_GeomFromText('MULTIPOLYGON(((0 0,10 0,0 10,0 0)),((10 0,20 0,20 10,10 0)))')) p;

-- expected
SELECT ST_PERIMETER(ST_FLIPCOORDINATES(ST_GEOMFROMTEXT('MULTIPOLYGON(((0 0,10 0,0 10,0 0)),((10 0,20 0,20 10,10 0)))')))P;

-- result
"p"
"68.284271247"
Expand Down

0 comments on commit 131c3ab

Please sign in to comment.