<commit_before>package testing;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.fail;

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

import enums.Color;
import enums.Number;
import enums.Shading;
import enums.Shape;
import setGame.Board;
import setGame.Card;
import setGame.Deck;
import setGame.Game;

public class GameTest {

    @Before
    public void setUp() throws Exception {
    }

    @Test
    public void initGameTest() {
        Game game = new Game();
        assertFalse(game.getDeck().empty());
        assertTrue(game.getBoard().empty());
    }

    @Test
    public void initGameWithDeckTest() {
        Card card1 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.ONE);
        Card card2 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.TWO);
        Card card3 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.THREE);
        Card card4 = new Card(Color.RED, Shape.SQUIGGLE, Shading.EMPTY, Number.ONE);
        Card card5 = new Card(Color.RED, Shape.SQUIGGLE, Shading.STRIPED, Number.ONE);
        Card card6 = new Card(Color.RED, Shape.DIAMOND, Shading.SOLID, Number.ONE);
        Card card7 = new Card(Color.RED, Shape.OVAL, Shading.SOLID, Number.ONE);

        Card[] cards = new Card[] { card1, card2, card3, card4, card5, card6, card7 };
        
        Game game = new Game(new Deck(cards), new Board());
        assertArrayEquals((Object[]) cards, game.getBoard().toArray());
        assertFalse(game.getDeck().empty());
    }

    @Test
    public void initGameWithBoardTest() {
        Card card1 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.ONE);
        Card card2 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.TWO);
        Card card3 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.THREE);
        Card card4 = new Card(Color.RED, Shape.SQUIGGLE, Shading.EMPTY, Number.ONE);
        Card card5 = new Card(Color.RED, Shape.SQUIGGLE, Shading.STRIPED, Number.ONE);
        Card card6 = new Card(Color.RED, Shape.DIAMOND, Shading.SOLID, Number.ONE);
        Card card7 = new Card(Color.RED, Shape.OVAL, Shading.SOLID, Number.ONE);

        Card[] cards = new Card[] { card1, card2, card3, card4, card5, card6, card7 };
        
        Game game = new Game(new Deck(), new Board(cards));
        assertArrayEquals((Object[]) cards, game.getBoard().toArray());
        assertFalse(game.getDeck().empty());
    }

    @Test
    public void PlaythroughTest1() {
        fail("Not yet implemented");
    }

    @Test
    public void PlaythroughTest2() {
        fail("Not yet implemented");
    }

    @Test
    public void PlaythroughTest3() {
        fail("Not yet implemented");
    }

}
<commit_msg>updated tests to use the right empty method<commit_after>package testing;

import static org.junit.Assert.*;

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

import enums.Color;
import enums.Number;
import enums.Shading;
import enums.Shape;
import setGame.Board;
import setGame.Card;
import setGame.Deck;
import setGame.Game;

public class GameTest {

    @Before
    public void setUp() throws Exception {
    }

    @Test
    public void initGameTest() {
        Game game = new Game();
        assertFalse(game.getDeck().isEmpty());
        assertTrue(game.getBoard().isEmpty());
    }

    @Test
    public void initGameWithDeckTest() {
        Card card1 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.ONE);
        Card card2 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.TWO);
        Card card3 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.THREE);
        Card card4 = new Card(Color.RED, Shape.SQUIGGLE, Shading.EMPTY, Number.ONE);
        Card card5 = new Card(Color.RED, Shape.SQUIGGLE, Shading.STRIPED, Number.ONE);
        Card card6 = new Card(Color.RED, Shape.DIAMOND, Shading.SOLID, Number.ONE);
        Card card7 = new Card(Color.RED, Shape.OVAL, Shading.SOLID, Number.ONE);

        Card[] cards = new Card[] { card1, card2, card3, card4, card5, card6, card7 };
        
        Game game = new Game(new Deck(cards), new Board());
        assertArrayEquals((Object[]) cards, game.getBoard().toArray());
        assertFalse(game.getDeck().isEmpty());
    }

    @Test
    public void initGameWithBoardTest() {
        Card card1 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.ONE);
        Card card2 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.TWO);
        Card card3 = new Card(Color.RED, Shape.SQUIGGLE, Shading.SOLID, Number.THREE);
        Card card4 = new Card(Color.RED, Shape.SQUIGGLE, Shading.EMPTY, Number.ONE);
        Card card5 = new Card(Color.RED, Shape.SQUIGGLE, Shading.STRIPED, Number.ONE);
        Card card6 = new Card(Color.RED, Shape.DIAMOND, Shading.SOLID, Number.ONE);
        Card card7 = new Card(Color.RED, Shape.OVAL, Shading.SOLID, Number.ONE);

        Card[] cards = new Card[] { card1, card2, card3, card4, card5, card6, card7 };
        
        Game game = new Game(new Deck(), new Board(cards));
        assertArrayEquals((Object[]) cards, game.getBoard().toArray());
        assertFalse(game.getDeck().isEmpty());
    }

    @Test
    public void PlaythroughTest1() {
        fail("Not yet implemented");
    }

    @Test
    public void PlaythroughTest2() {
        fail("Not yet implemented");
    }

    @Test
    public void PlaythroughTest3() {
        fail("Not yet implemented");
    }

}

{'fraction_non_alphanumeric': 0.12544483985765126, 'fraction_numerical': 0.01103202846975089, 'mean_word_length': 2.681074001309758, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3363923', 'n_tokens_mistral': 1894, 'n_tokens_neox': 1776, 'n_words': 440}