Skip to content

Commit

Permalink
fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
sivukhin committed Jul 9, 2024
1 parent 3df7239 commit 8a8a897
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsql-sqlite3/test/libsql_vector_index.test
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ do_execsql_test vector-backfill {
INSERT INTO t_backfill VALUES (vector('[4,5,6]'));
CREATE INDEX t_backfill_idx ON t_backfill( libsql_vector_idx(v) );
SELECT rowid FROM vector_top_k('t_backfill_idx', vector('[3,4,5]'), 4);
} {3 4 2 1}
} {3 4 2}

do_execsql_test vector-reindex {
CREATE TABLE t_reindex( v FLOAT32(3) );
Expand All @@ -56,7 +56,7 @@ do_execsql_test vector-reindex {
INSERT INTO t_reindex VALUES (vector('[4,5,6]'));
REINDEX t_reindex_idx;
SELECT rowid FROM vector_top_k('t_reindex_idx', vector('[3,4,5]'), 4);
} {3 4 2}
} {3 4 2 1}

do_execsql_test vector-text-pk {
CREATE TABLE t_text_pk( email TEXT PRIMARY KEY, v FLOAT32(3) );
Expand All @@ -76,7 +76,7 @@ do_execsql_test vector-text-pk-norow {
INSERT INTO t_text_pk_norow VALUES ('e-3', vector('[3,4,5]'));
INSERT INTO t_text_pk_norow VALUES ('e-4', vector('[4,5,6]'));
SELECT id FROM vector_top_k('t_text_pk_norow_idx', vector('[3,4,5]'), 4);
} {e-3 e-4 e-2}
} {e-3 e-4 e-2 e-1}

do_execsql_test vector-delete {
CREATE TABLE t_delete( id INTEGER PRIMARY KEY, v FLOAT32(3) );
Expand Down

0 comments on commit 8a8a897

Please sign in to comment.