Skip to content

Commit

Permalink
Missed a spot
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsamehsalah committed Jul 11, 2024
1 parent 3a3e47a commit 9810772
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ boolean testEqualsPredicate() {
return Stream.of("foo").anyMatch(s -> "bar".equals(s));
}

boolean testPredicateIsEqualEnums() {
return Stream.of(RoundingMode.UP).anyMatch(isEqual(RoundingMode.DOWN));
ImmutableSet<Boolean> testEnumsReferenceEqualityLambda() {

return ImmutableSet.of(
Stream.of(RoundingMode.UP).anyMatch(isEqual(RoundingMode.DOWN)),
Stream.of(RoundingMode.UP).anyMatch(RoundingMode.DOWN::equals));
}

boolean testDoubleNegation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ boolean testEqualsPredicate() {
return Stream.of("foo").anyMatch("bar"::equals);
}

boolean testPredicateIsEqualEnums() {
return Stream.of(RoundingMode.UP).anyMatch(v -> v == RoundingMode.DOWN);
ImmutableSet<Boolean> testEnumsReferenceEqualityLambda() {

return ImmutableSet.of(
Stream.of(RoundingMode.UP).anyMatch(v -> v == RoundingMode.DOWN),
Stream.of(RoundingMode.UP).anyMatch(v -> v == RoundingMode.DOWN));
}

boolean testDoubleNegation() {
Expand Down

0 comments on commit 9810772

Please sign in to comment.