Skip to content

Commit

Permalink
Enhance testKnnVectorsFormat test
Browse files Browse the repository at this point in the history
Test the output of toString method as it is available now.

Relates to elastic#79193
  • Loading branch information
mayya-sharipova committed Oct 21, 2021
1 parent 97c62a7 commit 8e47185
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ public void testKnnVectorsFormat() throws IOException {
assertThat(codec, instanceOf(PerFieldMapperCodec.class));
KnnVectorsFormat knnVectorsFormat = ((PerFieldMapperCodec) codec).getKnnVectorsFormatForField("field");
assertThat(knnVectorsFormat, instanceOf(Lucene90HnswVectorsFormat.class));
//TODO: add more assertions once LUCENE-10178 is implemented
String expectedString = "Lucene90HnswVectorsFormat(name = Lucene90HnswVectorsFormat, maxConn = " + m +
", beamWidth=" + efConstruction + ")";
assertEquals(expectedString, knnVectorsFormat.toString());
}
}

0 comments on commit 8e47185

Please sign in to comment.