<commit_before><?php

namespace Qandidate\Tests;

use Qandidate\Api;

class MoreSpecs extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     * @dataProvider getInvalidInput
     */
    public function it_throws_an_exception_when_passed_invalid_character_on_input($inputCharacter)
    {
        $this->setExpectedException('InvalidArgumentException', 'Please provide input with pattern a-z');
        $game = Api::bootGame();
        $game->guessCharacter($inputCharacter);
    }

    public function getInvalidInput()
    {
        return [
            ['1'],
            ['#'],
            ['32'],
            ['abcd'],
        ];
    }

    /** @test */
    public function it_increments_dots_in_the_middle_of_a_guess()
    {

    }

    /** @test */
    public function it_fetches_seedword_from_word_list()
    {

    }
}<commit_msg>add coverage of tests in the middle of the game<commit_after><?php

namespace Qandidate\Tests;

use Qandidate\Api;

class MoreSpecs extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     * @dataProvider getInvalidInput
     */
    public function it_throws_an_exception_when_passed_invalid_character_on_input($inputCharacter)
    {
        $this->setExpectedException('InvalidArgumentException', 'Please provide input with pattern a-z');
        $game = Api::bootGame();
        $game->guessCharacter($inputCharacter);
    }

    public function getInvalidInput()
    {
        return [
            ['1'],
            ['#'],
            ['32'],
            ['abcd'],
        ];
    }

    /** @test */
    public function it_does_and_does_not_increment_dots_in_the_middle_of_a_game()
    {
        $game = Api::bootGame();
        $this->assertEquals(11, $game->getTriesLeft());
        $game->guessCharacter('p');
        $this->assertEquals(10, $game->getTriesLeft());
        $this->assertEquals('........', $game->getMask());
        $game->guessCharacter('s');
        $this->assertEquals(10, $game->getTriesLeft());
        $this->assertEquals('s.......', $game->getMask());
        $game->guessCharacter('o');
        $this->assertEquals(10, $game->getTriesLeft());
        $this->assertEquals('so...o..', $game->getMask());
    }

    /** @test */
    public function it_fetches_seedword_from_word_list()
    {

    }
}
{'fraction_non_alphanumeric': 0.14949583516001755, 'fraction_numerical': 0.006137658921525646, 'mean_word_length': 2.554517133956386, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '6402943', 'n_tokens_mistral': 696, 'n_tokens_neox': 677, 'n_words': 108}