Skip to content
Snippets Groups Projects
Commit 4528d62a authored by hagrid67's avatar hagrid67
Browse files

adding back simple test to check that env.save() still exists

parent ff49ce2e
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,11 @@ def test_save_load():
agent_2_pos = env.agents[1].position
agent_2_dir = env.agents[1].direction
agent_2_tar = env.agents[1].target
#env.save("test_save.dat")
env.save("test_save_2.pkl")
RailEnvPersister.save(env, "test_save.pkl")
#env.load("test_save.dat")
env, env_dict = RailEnvPersister.load_new("test_save.pkl")
assert (env.width == 10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment