Skip to content

Commit

Permalink
Swap argument order to assertNotEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Jul 7, 2021
1 parent 14462da commit 19d6e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ void testSubtract() {
void testEqualsAndHashCode() {
final BigFraction zero = BigFraction.of(0, 1);
Assertions.assertEquals(zero, zero);
Assertions.assertNotEquals(null, zero);
Assertions.assertNotEquals(zero, null);
Assertions.assertNotEquals(zero, new Object());
Assertions.assertNotEquals(zero, Double.valueOf(0));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ void testEquals() {
Fraction f2 = null;

f1 = Fraction.of(3, 5);
assertNotEquals(null, f1);
assertNotEquals(f1, null);
assertNotEquals(f1, new Object());
assertNotEquals(f1, Integer.valueOf(6));

Expand Down

0 comments on commit 19d6e28

Please sign in to comment.