Skip to content

Commit 2727296

Browse files
committed
Improved test [skip ci]
1 parent 20f0f58 commit 2727296

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/pgvector/JDBCJavaTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ private void example(boolean read_binary) throws SQLException {
5454
}
5555
assertEquals(Arrays.asList(new Long[]{1L, 3L, 2L, 4L}), ids);
5656
assertArrayEquals(new float[] {1, 1, 1}, embeddings.get(0).toArray());
57+
assertArrayEquals(new float[] {1, 1, 2}, embeddings.get(1).toArray());
58+
assertArrayEquals(new float[] {2, 2, 2}, embeddings.get(2).toArray());
5759

5860
Statement indexStmt = conn.createStatement();
5961
indexStmt.executeUpdate("CREATE INDEX ON jdbc_items USING ivfflat (embedding vector_l2_ops) WITH (lists = 100)");

0 commit comments

Comments
 (0)