<commit_before>/*
 * Copyright (c) 2017. Licensed under the Apache License 2.0.
 * For full copyright, licensing, and sourcing information,
 * please refer to the CodeCarnage GitHub repository's README.md file
 * (found on https://github.com/j3kstrum/CodeCarnage).
 */

package engine.core;

import gui.game.GameGUI;
import utilties.models.Game;

import java.util.ArrayList;

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

public class EngineTest {

    private Engine e;

    @org.junit.Before
    public void setUp() throws Exception {
        GameGUI.ENGINE_TESTING = true;
        e = new Engine(new GameGUI(new ArrayList<>()));
    }

    @org.junit.Test
    public void shutdown() throws Exception {
        e.startGame();
        e.shutdown();<commit_msg>Fix tests<commit_after>/*
 * Copyright (c) 2017. Licensed under the Apache License 2.0.
 * For full copyright, licensing, and sourcing information,
 * please refer to the CodeCarnage GitHub repository's README.md file
 * (found on https://github.com/j3kstrum/CodeCarnage).
 */

package engine.core;

import gui.game.GameGUI;
import utilties.models.Game;

import java.util.ArrayList;

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

public class EngineTest {

    private Engine e;

    @org.junit.Before
    public void setUp() throws Exception {
        GameGUI.ENGINE_TESTING = true;
        EngineContext ec = new EngineContext();
        ec.loadMapAsync();
        e = new Engine(new GameGUI(new ArrayList<>(), ec), ec);
    }

    @org.junit.Test
    public void shutdown() throws Exception {
        e.startGame();
        e.shutdown();
{'fraction_non_alphanumeric': 0.10682492581602374, 'fraction_numerical': 0.00830860534124629, 'mean_word_length': 3.334190231362468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2389295', 'n_tokens_mistral': 518, 'n_tokens_neox': 495, 'n_words': 147}