<commit_before><commit_msg>New test to cover missed scenario.<commit_after>package com.github.donkirkby.vograbulary.ultraghost;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

import java.io.StringReader;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;


public class ControllerWithComputerSolvingTest {
    private Controller controller;
    private DummyRandom random;
    private DummyView dummyView;
    private Student student;
    private ComputerStudent computerStudent;
    
    @Rule
    public ExpectedException thrown = ExpectedException.none();
    
    @Before
    public void setUp() {
        random = new DummyRandom();
        dummyView = new DummyView();
        student = new Student("Student");
        computerStudent = new ComputerStudent();
        controller = new Controller();
        controller.readWordList(new StringReader(""));
        controller.setRandom(random);
        controller.setView(dummyView);
        controller.addStudent(computerStudent);
        controller.addStudent(student);
        controller.readWordList(new StringReader("PRIDE\nPIECE\nPILE"));
        random.setPuzzles("PIE");
        
        controller.next(); // display puzzle for computer
    }

    @Test
    public void focus() {
        assertThat("focus", dummyView.getCurrentFocus(), is("next"));
    }
}
{'fraction_non_alphanumeric': 0.10113154172560113, 'fraction_numerical': 0.0, 'mean_word_length': 3.367283950617284, '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': '5331021', 'n_tokens_mistral': 374, 'n_tokens_neox': 369, 'n_words': 86}