Skip to content

Commit

Permalink
langchain4j/model.output coverage tests. (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Feb 8, 2024
1 parent ba6a522 commit d063413
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void test_extract_date() {

verify(chatLanguageModel).generate(singletonList(userMessage(
"Extract date from " + text + "\n" +
"You must answer strictly in the following format: 2023-12-31")));
"You must answer strictly in the following format: yyyy-MM-dd")));
}

@Test
Expand All @@ -150,7 +150,7 @@ void test_extract_time() {

verify(chatLanguageModel).generate(singletonList(userMessage(
"Extract time from " + text + "\n" +
"You must answer strictly in the following format: 23:59:59")));
"You must answer strictly in the following format: HH:mm:ss")));
}

@Test
Expand All @@ -167,7 +167,7 @@ void test_extract_date_time() {

verify(chatLanguageModel).generate(singletonList(userMessage(
"Extract date and time from " + text + "\n" +
"You must answer strictly in the following format: 2023-12-31T23:59:59")));
"You must answer strictly in the following format: yyyy-MM-ddTHH:mm:ss")));
}


Expand Down

0 comments on commit d063413

Please sign in to comment.