Skip to content

Commit

Permalink
Yet more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Aug 11, 2024
1 parent 861b1bc commit e1e1c88
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ void matches() {
.addSourceLines(
"A.java",
"import java.io.OutputStream;",
"import java.util.Comparator;",
"import java.util.function.Predicate;",
"",
"class A {",
Expand Down Expand Up @@ -64,7 +65,8 @@ void matches() {
" }",
"",
" boolean negative12() {",
" return !false;",
" boolean[] arr = new boolean[0];",
" return !arr[0];",
" }",
"",
" String negative13() {",
Expand Down Expand Up @@ -112,17 +114,22 @@ void matches() {
" return toString()::equals;",
" }",
"",
" String positive9() {",
" Comparator<String> positive9() {",
" // BUG: Diagnostic contains:",
" return toString().CASE_INSENSITIVE_ORDER;",
" }",
"",
" String positive10() {",
" // BUG: Diagnostic contains:",
" return (toString());",
" }",
"",
" Object positive10() {",
" Object positive11() {",
" // BUG: Diagnostic contains:",
" return (Object) toString();",
" }",
"",
" int positive11() {",
" int positive12() {",
" // BUG: Diagnostic contains:",
" return -hashCode();",
" }",
Expand Down

0 comments on commit e1e1c88

Please sign in to comment.