Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvmacfarlane committed Jan 23, 2024
1 parent a032ae2 commit 00e3068
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jumanji/environments/routing/sokoban/env_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def test_sokoban__termination_solved(sokoban_simple: Sokoban) -> None:
"""Check that with correct sequence of actions to solve a trivial problem,
the environment terminates"""

correct_actions = [0, 2, 1] * 1 + [0]
wrong_actions = [0, 2, 1] * 1 + [2]
correct_actions = [0, 2, 1] * 3 + [0]
wrong_actions = [0, 2, 1] * 3 + [2]

chex.clear_trace_counter()
step_fn = jax.jit(chex.assert_max_traces(sokoban_simple.step, n=1))
Expand Down Expand Up @@ -191,7 +191,7 @@ def test_sokoban__reward_function_solved(sokoban_simple: Sokoban) -> None:
solving adds an additional 10"""

# Correct actions that lead to placing a box every 3 actions
correct_actions = [0, 2, 1] * 1 + [0]
correct_actions = [0, 2, 1] * 3 + [0]

chex.clear_trace_counter()
step_fn = jax.jit(chex.assert_max_traces(sokoban_simple.step, n=1))
Expand Down

0 comments on commit 00e3068

Please sign in to comment.