@@ -0,0 +1,1172 @@
+/**%0A *%0A */%0Apackage com.github.apixandru.games.rummikub;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Alexandru-Constantin Bledea%0A * @since Sep 17, 2015%0A */%0A@SuppressWarnings (%22static-method%22)%0Apublic final class CardsTest %7B%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testIsAscendingRanks() %7B%0A%09%09final List%3CCard%3E cards = Arrays.asList(new Card(Color.RED, Rank.ONE), new Card(Color.RED, Rank.TWO), new Card(Color.RED, Rank.THREE));%0A%09%09Assert.assertTrue(%22Cards should be in ascending order%22, Cards.isAscendingRanks(cards));%0A%09%7D%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testIsAscendingRanksWithJoker() %7B%0A%09%09final List%3CCard%3E cards = Arrays.asList(new Card(Color.RED, Rank.ONE), new Card(null, null), new Card(Color.RED, Rank.THREE));%0A%09%09Assert.assertTrue(%22Cards should be in ascending order%22, Cards.isAscendingRanks(cards));%0A%09%7D%0A%0A%09/**%0A%09 *%0A%09 */%0A%09@Test%0A%09public void testIsAscendingRanksWithJokerBad() %7B%0A%09%09final List%3CCard%3E cards = Arrays.asList(new Card(Color.RED, Rank.ONE), new Card(null, null), new Card(Color.RED, Rank.FOUR));%0A%09%09Assert.assertFalse(%22Cards should not be in ascending order%22, Cards.isAscendingRanks(cards));%0A%09%7D%0A%0A%7D%0A

add new tests