Skip to content

Commit 175dc9b

Browse files
ThomasVitalemarkpollack
authored andcommitted
Improve translation test
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
1 parent 5dbfbf9 commit 175dc9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-integration-tests/src/test/java/org/springframework/ai/integration/tests/client/advisor/RetrievalAugmentationAdvisorIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void ragWithTranslation() {
128128

129129
String response = chatResponse.getResult().getOutput().getContent();
130130
System.out.println(response);
131-
assertThat(response).containsIgnoringCase("Highlands");
131+
assertThat(response.toLowerCase()).containsAnyOf("highlands", "højland");
132132

133133
evaluateRelevancy(question, chatResponse);
134134
}

0 commit comments

Comments
 (0)