package fr.esiea.unique.binome.name.dictionary;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

/**
 * 
 * @author Florent
 *
 */

public class PiocheTest {
	private Pioche pioche = new Pioche();
	
	@Test
	public void testMeilleurLettre() {
		char l1 = 'a';
		char l2 = 'b';
		assertTrue(pioche.meilleurLettre(l1, l2));
		assertFalse(pioche.meilleurLettre(l2, l1));
		assertTrue(pioche.meilleurLettre(l1, l1));
	}
	
	@Test
	public void testLetterRandom() {
		
	}
}

@@ -86,16 +86,64 @@
 tFalse;%0A
+import static org.junit.Assert.assertNotEquals;%0A
 import s
@@ -565,14 +565,149 @@
 m() %7B%0A%09%09
+String alphabet = %22abcdefghijklmnopqrstuvwxyz%22;%0A%09    char c = pioche.letterRandom();%0A%09    assertNotEquals(alphabet.lastIndexOf(c), -1);
 %0A%09%7D%0A%7D%0A

Test du random de la pioche