Skip to content

Commit

Permalink
check that rewards work (kind of)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasanari committed Mar 13, 2024
1 parent ff7b6e5 commit f1ca743
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ def test_step():
done = False
obs, info = env.reset()
step = 0
_return = 0.0
while not done:
obs, reward, term, trunc, info = env.step((0,0))
obs, reward, term, trunc, info = env.step((0, None))
done = term or trunc
print(obs, reward, done, info)
step += 1
_return += reward

assert done
assert _return < 0.0


assert done

0 comments on commit f1ca743

Please sign in to comment.