2020-05-25 10:26:57 +02:00
|
|
|
import gym
|
|
|
|
import mujoco_maze
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("maze_id", mujoco_maze.MAZE_IDS)
|
|
|
|
def test_ant_maze(maze_id):
|
2020-05-30 11:24:11 +02:00
|
|
|
env = gym.make("Ant{}-v0".format(maze_id))
|
2020-05-25 10:26:57 +02:00
|
|
|
assert env.reset().shape == (30,)
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("maze_id", mujoco_maze.MAZE_IDS)
|
|
|
|
def test_point_maze(maze_id):
|
2020-05-30 11:24:11 +02:00
|
|
|
env = gym.make("Point{}-v0".format(maze_id))
|
2020-05-25 10:26:57 +02:00
|
|
|
assert env.reset().shape == (7,)
|