Improved input tests [skip ci]

This commit is contained in:
Andrew Kane
2024-04-09 17:34:11 -07:00
parent dd5b856f68
commit f6becf01aa
6 changed files with 43 additions and 0 deletions

View File

@@ -91,6 +91,10 @@ ERROR: malformed halfvec literal: "["
LINE 1: SELECT '['::halfvec;
^
DETAIL: Unexpected end of input.
SELECT '[ '::halfvec;
ERROR: invalid input syntax for type halfvec: "[ "
LINE 1: SELECT '[ '::halfvec;
^
SELECT '[,'::halfvec;
ERROR: malformed halfvec literal: "[,"
LINE 1: SELECT '[,'::halfvec;
@@ -100,6 +104,11 @@ SELECT '[]'::halfvec;
ERROR: halfvec must have at least 1 dimension
LINE 1: SELECT '[]'::halfvec;
^
-- TODO fix error message
SELECT '[,]'::vector;
ERROR: vector must have at least 1 dimension
LINE 1: SELECT '[,]'::vector;
^
SELECT '[1,]'::halfvec;
ERROR: invalid input syntax for type halfvec: "[1,]"
LINE 1: SELECT '[1,]'::halfvec;