Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Reorder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangerCoug committed Oct 7, 2023
1 parent c97e6b4 commit bb8bb5a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ void testOutranksNull() {
assertThrows(NullPointerException.class, () -> card.outranks(null));
}

@Test
void testEqualsContract() {
EqualsVerifier.forClass(Card.class).verify();
}

@Test
void testCompareToSameCard() {
Card card1 = new Card(CardRank.ACE, CardSuit.SPADES);
Expand Down Expand Up @@ -93,6 +88,11 @@ void testCompareToNull() {
assertThrows(NullPointerException.class, () -> card.compareTo(null));
}

@Test
void testEqualsContract() {
EqualsVerifier.forClass(Card.class).verify();
}

@Test
void testToString() {
String[] expectedValues = new String[]{"Two of Clubs", "Three of Diamonds", "Four of Hearts", "Five of Spades",
Expand Down

0 comments on commit bb8bb5a

Please sign in to comment.