Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Translation result changed, and for some reason my text was no longer flagged
TheoKanning committed Aug 4, 2023
1 parent 332855d commit 9b28ab7
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ void createTranslation() {
.build();

String text = service.createTranslation(createTranslationRequest, koreanAudioFilePath).getText();
assertEquals("Hello, my name is Yuna. I am Korean voice.", text);
assertEquals("Hello, my name is Yoona. I am a Korean native speaker.", text);
}

@Test
@@ -63,7 +63,7 @@ void createTranslationVerbose() {
.build();

TranslationResult result = service.createTranslation(createTranslationRequest, koreanAudioFilePath);
assertEquals("Hello, my name is Yuna. I am Korean voice.", result.getText());
assertEquals("Hello, my name is Yoona. I am a Korean native speaker.", result.getText());
assertEquals("translate", result.getTask());
assertEquals("english", result.getLanguage());
assertTrue(result.getDuration() > 0);
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ public class ModerationTest {
@Test
void createModeration() {
ModerationRequest moderationRequest = ModerationRequest.builder()
.input("I want to kill them")
.input("I want to kill him")
.model("text-moderation-latest")
.build();

0 comments on commit 9b28ab7

Please sign in to comment.