From d57ef873c2787955816e2e5fbf3ccafa16a0d533 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 25 Mar 2024 16:43:15 -0700 Subject: [PATCH] Improved test [skip ci] --- test/expected/functions.out | 4 ++-- test/sql/functions.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/expected/functions.out b/test/expected/functions.out index dd28597..6f32197 100644 --- a/test/expected/functions.out +++ b/test/expected/functions.out @@ -240,10 +240,10 @@ 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]'); +SELECT quantize_binary('[0,0.1,-0.2,-0.3,0.4,0.5,0.6,-0.7,0.8,-0.9,1]'); quantize_binary ----------------- - 1001110100 + 01001110101 (1 row) SELECT avg(v) FROM unnest(ARRAY['[1,2,3]'::vector, '[3,5,7]']) v; diff --git a/test/sql/functions.sql b/test/sql/functions.sql index e82fda6..b347390 100644 --- a/test/sql/functions.sql +++ b/test/sql/functions.sql @@ -55,7 +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 quantize_binary('[0,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;