<commit_before>import unittest
from capstone.environment import Environment


class TestEnvironment(unittest.TestCase):

    def test_states(self):
        pass

    # def test_reward_before_game_is_over(self):
    #     cur_state = TicTacToe()
    #     action = 1
    #     next_state = cur_state.copy().make_move(action)
    #     reward = self.mdp.reward(cur_state, action, next_state)
    #     self.assertEqual(reward, 0)

    # def test_reward_when_game_is_over(self):
    #     cur_state = TicTacToe()
    #     action = 1
    #     next_state = cur_state.copy().make_move(action)
    #     reward = self.mdp.reward(cur_state, action, next_state)
    #     self.assertEqual(reward, 0)

    # def test_reward_when_game_is_over_and_first_player_wins(self):
    #     cur_state = TicTacToe().make_moves([1, 4, 2, 5])
    #     action = 3
    #     next_state = cur_state.copy().make_move(action)
    #     reward = self.mdp.reward(cur_state, action, next_state)
    #     self.assertEqual(reward, 1)<commit_msg>Add test_cur_state to TestEnvironment<commit_after>import unittest
from capstone.environment import Environment
from capstone.game import TicTacToe
from capstone.mdp import GameMDP


class TestEnvironment(unittest.TestCase):

    def test_cur_state(self):
        game = TicTacToe()
        mdp = GameMDP(game, None, 0)
        env = Environment(mdp)
        self.assertEqual(env.cur_state(), mdp.start_state())
{'fraction_non_alphanumeric': 0.102312543798178, 'fraction_numerical': 0.007708479327259986, 'mean_word_length': 3.2882882882882885, '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': '245735', 'n_tokens_mistral': 503, 'n_tokens_neox': 487, 'n_words': 86}