]> granicus.if.org Git - postgis/commitdiff
Add a test for input being invalid (a test of the test)
authorSandro Santilli <strk@keybit.net>
Tue, 16 Feb 2010 09:06:48 +0000 (09:06 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 16 Feb 2010 09:06:48 +0000 (09:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5253 b70326c6-7e19-0410-871a-916f4a2858ee

regress/clean.sql
regress/clean_expected

index 63e596b8de3bf3173094eee013d01056e0b9b3f2..3309409c717cc795f38d235c4ac5abefb3e22e28 100644 (file)
@@ -22,5 +22,6 @@ COPY clean_cases FROM stdin;
 
 SELECT caseno,
        st_astext(st_makevalid(orig)) = st_astext(valid),
-       st_isvalid(st_makevalid(orig)) -- paranoia
+       st_isvalid(st_makevalid(orig)), -- paranoia
+       (st_isvaliddetail(orig)).valid
 FROM clean_cases;
index 53a62202ed547db41604a735f6b70b85aef475bb..e09a04de2c98436687654a324fc9b06e20dc592e 100644 (file)
@@ -1,16 +1,16 @@
-1|t|t
-2|t|t
-3|t|t
-4|t|t
-5|t|t
-6|t|t
-7|t|t
-7.1|t|t
-8|t|t
-9|t|t
-9.1|t|t
-11|t|t
-12|t|t
-13.2|t|t
-14|t|t
-15|t|t
+1|t|t|f
+2|t|t|f
+3|t|t|f
+4|t|t|f
+5|t|t|f
+6|t|t|f
+7|t|t|f
+7.1|t|t|f
+8|t|t|f
+9|t|t|f
+9.1|t|t|f
+11|t|t|f
+12|t|t|f
+13.2|t|t|f
+14|t|t|f
+15|t|t|f