Improved tests for l2_norm [skip ci]

This commit is contained in:
Andrew Kane
2024-04-23 20:38:22 -07:00
parent 158481ff2a
commit d1affcc667
6 changed files with 42 additions and 0 deletions

View File

@@ -176,6 +176,18 @@ SELECT l2_norm('[0,1]'::halfvec);
1
(1 row)
SELECT l2_norm('[0,0]'::halfvec);
l2_norm
---------
0
(1 row)
SELECT l2_norm('[2]'::halfvec);
l2_norm
---------
2
(1 row)
SELECT l2_distance('[0,0]'::halfvec, '[3,4]');
l2_distance
-------------