Skip to content

Commit

Permalink
showcase for issue with text block cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Oct 6, 2024
1 parent 68f1142 commit 7b006c6
Show file tree
Hide file tree
Showing 12 changed files with 1,206 additions and 1,228 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2940,18 +2940,20 @@ interface FI {
AssistContext context= getCorrectionContext(cu, offset, 0);
assertNoErrors(context);
List<IJavaCompletionProposal> proposals= collectAssists(context, false);
StringBuilder buf= new StringBuilder();
buf.append("package test1;\n");
buf.append("public class E1 {\n");
buf.append(" FI fi= (Integer i, String[][] s) -> {};\n"); // no varargs
buf.append("}\n");
buf.append("interface FI {\n");
buf.append(" void foo(Integer i, String[]... s);\n");
buf.append("}\n");
String buf= """
package test1;
public class E1 {
FI fi= (Integer i, String[][] s) -> {};
}
interface FI {
void foo(Integer i, String[]... s);
}
""";
// no varargs
assertNumberOfProposals(proposals, 2);
assertCorrectLabels(proposals);

String expected1= buf.toString();
String expected1= buf;

assertExpectedExistInProposals(proposals, new String[] { expected1 });
}
Expand Down
Loading

0 comments on commit 7b006c6

Please sign in to comment.