Skip to content

Commit da953d6

Browse files
committed
test: add another test case for Vectors::toString
1 parent 56666ea commit da953d6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/test/java/io/weaviate/client6/v1/api/collections/VectorsTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ public void testToString_2d() {
1717
var got = vector.toString();
1818
Assertions.assertThat(got).isEqualTo("Vectors(default=[[1.0, 2.0, 3.0], [1.0, 2.0, 3.0]])");
1919
}
20+
21+
@Test
22+
public void testToString_multiple() {
23+
var title = Vectors.of("title", new float[] { 1, 2, 3 });
24+
var body = Vectors.of("body", new float[][] { { 1, 2, 3 }, { 1, 2, 3 } });
25+
var vectors = new Vectors(title, body);
26+
var got = vectors.toString();
27+
Assertions.assertThat(got).isEqualTo("Vectors(title=[1.0, 2.0, 3.0], body=[[1.0, 2.0, 3.0], [1.0, 2.0, 3.0]])");
28+
}
2029
}

0 commit comments

Comments
 (0)