From eb1c17938c5d5ee2c13a80e6f1be7e23923dd048 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 10 Feb 2005 17:38:20 +0000 Subject: [PATCH] Added a couple of distance() tests. git-svn-id: http://svn.osgeo.org/postgis/trunk@1392 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/regress.sql | 3 +++ regress/regress_expected | 2 ++ 2 files changed, 5 insertions(+) diff --git a/regress/regress.sql b/regress/regress.sql index 36287dec6..bdef7e336 100644 --- a/regress/regress.sql +++ b/regress/regress.sql @@ -223,3 +223,6 @@ select '130', geosnoop('POLYGON((0 0, 1 1, 0 0))'); select '131', X('POINT(1 2)'); select '132', Y('POINT(1 2)'); select '133', Z('POINT(1 2)'); + +select '134', distance('POINT(1 2)', 'POINT(1 2)'); +select '135', distance('POINT(5 0)', 'POINT(10 12)'); diff --git a/regress/regress_expected b/regress/regress_expected index b1589a9af..5ebd353c1 100644 --- a/regress/regress_expected +++ b/regress/regress_expected @@ -133,3 +133,5 @@ ERROR: POSTGIS2GEOS conversion failed 131|1 132|2 133|0 +134|0 +135|13 -- 2.40.0