Added tests for halfvec_norm [skip ci]

This commit is contained in:
Andrew Kane
2024-04-09 18:00:42 -07:00
parent f6becf01aa
commit 12f4a34708
2 changed files with 22 additions and 0 deletions

View File

@@ -34,3 +34,7 @@ SELECT subvector('[1,2,3,4,5]'::halfvec, 3, 9);
SELECT subvector('[1,2,3,4,5]'::halfvec, 1, 0);
SELECT subvector('[1,2,3,4,5]'::halfvec, 3, -1);
SELECT subvector('[1,2,3,4,5]'::halfvec, -1, 2);
SELECT round(halfvec_norm('[1,1]')::numeric, 5);
SELECT halfvec_norm('[3,4]');
SELECT halfvec_norm('[0,1]');