From 1066b4be6008fb32e5ab96da33ae78bfc3574e4b Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 13 Oct 2024 19:01:04 -0700 Subject: [PATCH] Added intvec to distance functions test [skip ci] --- test/t/034_distance_functions.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/t/034_distance_functions.pl b/test/t/034_distance_functions.pl index 180fa46..e4f0074 100644 --- a/test/t/034_distance_functions.pl +++ b/test/t/034_distance_functions.pl @@ -45,6 +45,10 @@ for my $function (@functions) my $actual = $node->safe_psql("postgres", "SELECT $function(v::halfvec, '$query'::vector::halfvec) FROM tst"); is($expected, $actual, "halfvec $function"); + # Test intvec + $actual = $node->safe_psql("postgres", "SELECT $function(v::real[]::int[]::intvec, '$query'::vector::real[]::int[]::intvec) FROM tst"); + is($expected, $actual, "intvec $function"); + # Test sparsevec $actual = $node->safe_psql("postgres", "SELECT $function(v::sparsevec, '$query'::vector::sparsevec) FROM tst"); is($expected, $actual, "sparsevec $function");