Make it work

This commit is contained in:
kngwyu
2020-05-25 17:26:57 +09:00
parent 034bd64990
commit a3007a7b81
8 changed files with 599 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
import gym
import mujoco_maze
import pytest
@pytest.mark.parametrize("maze_id", mujoco_maze.MAZE_IDS)
def test_ant_maze(maze_id):
env = gym.make("AntMaze{}-v0".format(maze_id))
assert env.reset().shape == (30,)
@pytest.mark.parametrize("maze_id", mujoco_maze.MAZE_IDS)
def test_point_maze(maze_id):
env = gym.make("PointMaze{}-v0".format(maze_id))
assert env.reset().shape == (7,)