package examples.pokerhands.valuation;

import static org.junit.Assert.*;

import org.junit.Test;

public class RankTest {

	@Test
	public void testContainsAllHandsAndNone() {
		assertEquals(9 + 1, Rank.values().length);
	}

	@Test
	public void testNoneIsLowest() {
		assertEquals(0, Rank.NONE.ordinal());
	}

}

@@ -301,12 +301,560 @@
 l());%0A%09%7D
+%0A%09%0A%09@Test%0A%09public void testToString() %7B%0A%09%09assertEquals(%22Flush%22, Rank.FLUSH.toString());%0A%09%09assertEquals(%22Four of a kind%22, Rank.FOUR_KIND.toString());%0A%09%09assertEquals(%22Full House%22, Rank.FULL_HOUSE.toString());%0A%09%09assertEquals(%22No ranking%22, Rank.NONE.toString());%0A%09%09assertEquals(%22Pair%22, Rank.PAIR.toString());%0A%09%09assertEquals(%22Straight%22, Rank.STRAIGHT.toString());%0A%09%09assertEquals(%22Straight Flush%22, Rank.STRAIGHT_FLUSH.toString());%0A%09%09assertEquals(%22Three of a kind%22, Rank.THREE_KIND.toString());%0A%09%09assertEquals(%22Two Pairs%22, Rank.TWO_PAIRS.toString());%0A%09%7D%0A%09
 %0A%0A%7D%0A

Add missing Rank.toString() test