Added tests for halfvec_norm [skip ci]

This commit is contained in:
Andrew Kane committed 2024-04-09 18:00:42 -07:00
1 parent f6becf01aa
commit 12f4a34708
2 files changed
+22

No files matched your search

+4
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]');