Skip to content

Commit

Permalink
(#1037) Update reasons in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vladhss committed Apr 12, 2019
1 parent 355cad5 commit cd98558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/iterable/IterableEnvelopeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void differentHashCode() {
final IterableOf<Integer> first = new IterableOf<>(1, 2);
final IterableOf<Integer> second = new IterableOf<>(2, 1);
new Assertion<>(
"hashCode is equal for Iterables with different content",
"Must have different hashCode for Iterables with different content",
first::hashCode,
new IsNot<>(new IsEqual<>(second.hashCode()))
).affirm();
Expand All @@ -118,7 +118,7 @@ public void differentHashCode() {
public void equalHashCode() {
final IterableOf<Integer> iterable = new IterableOf<>(1, 2);
new Assertion<>(
"hashCode is different for Iterables with equal content",
"Must have equal hashCode for Iterables with equal content",
iterable::hashCode,
new IsEqual<>(new IterableOf<>(1, 2).hashCode())
).affirm();
Expand Down

0 comments on commit cd98558

Please sign in to comment.