Improved tests [skip ci]

This commit is contained in:
Andrew Kane
2023-06-11 19:11:17 -07:00
parent 08c70bb57f
commit 3332669489
2 changed files with 7 additions and 12 deletions

View File

@@ -10,6 +10,12 @@ SELECT '[-1,2,3]'::vector;
[-1,2,3]
(1 row)
SELECT '[1.,2.,3.]'::vector;
vector
---------
[1,2,3]
(1 row)
SELECT ' [ 1, 2 , 3 ] '::vector(3);
vector
---------
@@ -65,16 +71,6 @@ SELECT '[1,]'::vector;
ERROR: invalid input syntax for type vector: "[1,]"
LINE 1: SELECT '[1,]'::vector;
^
SELECT '[1.]'::vector;
vector
--------
[1]
(1 row)
SELECT '[1a]'::vector;
ERROR: invalid input syntax for type vector: "[1a]"
LINE 1: SELECT '[1a]'::vector;
^
SELECT '[1,,3]'::vector;
ERROR: malformed vector literal: "[1,,3]"
LINE 1: SELECT '[1,,3]'::vector;