예제 #1
0
 def test_does_not_modify_action(self):
     env = GridWorldEnv(desc="8x8")
     a = env.action_space.sample()
     a_copy = a
     env.reset()
     env.step(a)
     self.assertEquals(a, a_copy)
예제 #2
0
 def test_does_not_modify_action(self):
     env = GridWorldEnv(desc='8x8')
     a = env.action_space.sample()
     a_copy = a
     env.reset()
     env.step(a)
     assert a == a_copy
     env.close()