Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
lassepe committed Mar 7, 2024
1 parent eec9ed4 commit 303aa6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function isfeasible(env::TrajectoryGamesBase.PolygonEnvironment, trajectory; tol
end |> all
end

function input_sanity(; solver, game, initial_state, context)
function input_sanity(; solver, solver_wrong_context, game, initial_state, context)
@testset "input sanity" begin
@test_throws ArgumentError TrajectoryGamesBase.solve_trajectory_game!(
solver,
Expand Down Expand Up @@ -151,11 +151,11 @@ function main()
solver =
MCPTrajectoryGameSolver.Solver(game, horizon; context_dimension=length(context))
solver_wrong_context =
MCPTrajectoryGameSolver.Solver(game, horizon; context_dimension=6)
MCPTrajectoryGameSolver.Solver(game, horizon; context_dimension=(length(context) + 1))
end

@testset "solve" begin
input_sanity(; solver, game, initial_state, context)
input_sanity(; solver, solver_wrong_context, game, initial_state, context)
strategy =
TrajectoryGamesBase.solve_trajectory_game!(solver, game, initial_state; context)
forward_pass_sanity(; solver, game, initial_state, context, horizon, strategy)
Expand Down

0 comments on commit 303aa6f

Please sign in to comment.