<commit_before>package fr.esiea.Ranaivo_Remy.Game;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import fr.esiea.Ranaivo_Remy.Game.Components.Player;
import fr.esiea.Ranaivo_Remy.Game.Core.Game;

public class GameTest {

	@Test
	public final void testGame() {
		fail("Not yet implemented"); // TODO
	}
	
	@Test
	public final void testGetChoiceNbPlayer() {	
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testGetInt() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testGetString() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testSetNbPlayer() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testInitTabPlayer() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testSetNameEnter() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testFirstDraw() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testPrintMutualBag() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testStartGame() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testWhoStart() {
		Game test = new Game();
		Player[] tabPlayer = new Player[2];
		tabPlayer[0] = new Player();
		tabPlayer[1] = new Player();
		
		tabPlayer[0].setVal(20);
		tabPlayer[1].setVal(10);
		
		tabPlayer[0].setName("joueur1");
		tabPlayer[1].setName("joueur2");
		
		assertSame("Le joueur2 commence", tabPlayer[1],test.whoStart(tabPlayer));	 
		
		
	}

	@Test
	public final void testSortArray() {
		Game test = new Game();
		Player[] tabPlayer = new Player[2];
		tabPlayer[0] = new Player();
		tabPlayer[1] = new Player();
		
		tabPlayer[0].setVal(20);
		tabPlayer[1].setVal(10);
				test.sortArray(tabPlayer);
				
		boolean flag = false;
		
		if(tabPlayer[0].getVal() < tabPlayer[1].getVal()){
			flag = true;
		}
		
		assertTrue("Test réussi", flag);
	}

	@Test
	public final void testMutualBag() {
		fail("Not yet implemented"); // TODO
	}

}<commit_msg>Commit n°33<commit_after>package fr.esiea.Ranaivo_Remy.Game;

import static org.junit.Assert.*;

import java.util.Scanner;

import org.junit.Test;

import fr.esiea.Ranaivo_Remy.Game.Components.Player;
import fr.esiea.Ranaivo_Remy.Game.Core.Game;

public class GameTest {

	Game test = new Game();
	
	
	@Test
	public final void testSetNbPlayer() {
		//Scanner sc = new Scanner(System.in);
		//int nbPlayer = sc.nextInt();
		
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testInitTabPlayer() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testInitMutualBag() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testSetNameEnter() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testPrintWordPlayer() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testStartGame() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testWhoStart() {
		//Game test = new Game();
		Player[] tabPlayer = new Player[2];
		tabPlayer[0] = new Player();
		tabPlayer[1] = new Player();
		
		tabPlayer[0].setVal(20);
		tabPlayer[1].setVal(10);
		
		tabPlayer[0].setName("joueur1");
		tabPlayer[1].setName("joueur2");
		
		assertSame("Le joueur2 commence", tabPlayer[1],test.whoStart(tabPlayer));	 
	
	}

	@Test
	public final void testTurnPlayer() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testPassTurn() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testPrintMenu() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testChoiceAction() {
		fail("Not yet implemented"); // TODO
	}

	@Test
	public final void testSortArray() {
		//Game test = new Game();
		Player[] tabPlayer = new Player[2];
		tabPlayer[0] = new Player();
		tabPlayer[1] = new Player();
		boolean flag = false;
		
		tabPlayer[0].setVal(20);
		tabPlayer[1].setVal(10);
				test.sortArray(tabPlayer);

		if(tabPlayer[0].getVal() < tabPlayer[1].getVal()){
			flag = true;
		}
		
		assertTrue("Test réussi", flag);
	}

}
{'fraction_non_alphanumeric': 0.14853658536585365, 'fraction_numerical': 0.013170731707317073, 'mean_word_length': 3.7029816513761467, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4441173', 'n_tokens_mistral': 1557, 'n_tokens_neox': 1401, 'n_words': 351}