diff --git a/tests/examples.rs b/tests/examples.rs index a238e96..67f6116 100644 --- a/tests/examples.rs +++ b/tests/examples.rs @@ -34,3 +34,14 @@ fn trash_compactor() { solvers::run_solver(solvers::trash_compactor::TrashCompactor {}, &EXAMPLE_PATHS) ); } + +#[test] +fn playground() { + assert_eq!( + Ok((40, 0)), + solvers::run_solver( + solvers::playground::Playground::new(Some(10)), + &EXAMPLE_PATHS + ) + ); +} diff --git a/tests/full_data.rs b/tests/full_data.rs index c6a3f2f..085f642 100644 --- a/tests/full_data.rs +++ b/tests/full_data.rs @@ -29,3 +29,14 @@ fn trash_compactor() { ) ); } + +#[test] +fn playground() { + assert_eq!( + Ok((352584, 0)), + solvers::run_solver( + solvers::playground::Playground::new(None), + &solvers::DATA_PATHS + ) + ); +}