diff --git a/test/expected/functions.out b/test/expected/functions.out index 265a84d..dd28597 100644 --- a/test/expected/functions.out +++ b/test/expected/functions.out @@ -240,6 +240,12 @@ SELECT quantize_binary('[1,0,-1]'); 100 (1 row) +SELECT quantize_binary('[0.1,-0.2,-0.3,0.4,0.5,0.6,-0.7,0.8,-0.9,-1]'); + quantize_binary +----------------- + 1001110100 +(1 row) + SELECT avg(v) FROM unnest(ARRAY['[1,2,3]'::vector, '[3,5,7]']) v; avg ----------- diff --git a/test/sql/functions.sql b/test/sql/functions.sql index 42c706e..e82fda6 100644 --- a/test/sql/functions.sql +++ b/test/sql/functions.sql @@ -55,6 +55,7 @@ SELECT hamming_distance(B'111', B'000'); SELECT hamming_distance(B'111', B'00'); SELECT quantize_binary('[1,0,-1]'); +SELECT quantize_binary('[0.1,-0.2,-0.3,0.4,0.5,0.6,-0.7,0.8,-0.9,-1]'); SELECT avg(v) FROM unnest(ARRAY['[1,2,3]'::vector, '[3,5,7]']) v; SELECT avg(v) FROM unnest(ARRAY['[1,2,3]'::vector, '[3,5,7]', NULL]) v;