kva/test/cards/SuitTest.java

20 lines
499 B
Java
Raw Normal View History

2024-05-12 14:25:54 +02:00
package cards;
import org.junit.Test;
import static cards.Suit.CLUBS;
import static cards.Suit.DIAMONDS;
import static cards.Suit.HEARTS;
import static cards.Suit.SPADES;
import static org.junit.Assert.assertEquals;
public class SuitTest {
@Test
public void toStringTest() {
assertEquals("♥︎", HEARTS.toString());
assertEquals("♦︎", DIAMONDS.toString());
assertEquals("♣︎", CLUBS.toString());
assertEquals("♠︎", SPADES.toString());
}
}