Skip to content

Commit

Permalink
Fix condition enabling assertThrows expansion
Browse files Browse the repository at this point in the history
langchain4j/langchain4j#1433
avoids incorrect multi-mapping in file
langchain4j/src/test/java/dev/langchain4j/service/tool/ToolExecutionRequestUtilTest.java
public void test_argument_comma_array()
  • Loading branch information
tsantalis committed Aug 11, 2024
1 parent e30ffca commit a2c5802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,9 @@ else if (assertThrows1 == 0 && assertThrows2 > 0) {
handleAssertThrowsLambda(leaves1, leaves2, innerNodes2, lambdas2, operation2);
}
}
else if(operation1.hasTestAnnotation() && operation2.hasTestAnnotation() && (lambdas2.size() + nestedLambdas2.size() == lambdas1.size() + nestedLambdas1.size() + assertThrows2 ||
lambdas2.size() == lambdas1.size() + assertThrows2 || (assertThrows1 == 0 && assertThrows2 > 0))) {
else if(operation1.hasTestAnnotation() && operation2.hasTestAnnotation() && assertThrows2 > 0 &&
(lambdas2.size() + nestedLambdas2.size() == lambdas1.size() + nestedLambdas1.size() + assertThrows2 ||
lambdas2.size() == lambdas1.size() + assertThrows2 || assertThrows1 == 0)) {
handleAssertThrowsLambda(leaves1, leaves2, innerNodes2, lambdas2, operation2);
}
Set<AbstractCodeFragment> streamAPIStatements1 = statementsWithStreamAPICalls(leaves1);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ul li:last-child {
}
ul
{
padding-inline-start: 1px;
padding-inline-start: 3px;
}
.row>*{
padding-right: 0;
Expand Down

0 comments on commit a2c5802

Please sign in to comment.