From 4ce0d4352915de0644949bacb1f3de9c1ea56bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Tue, 9 Dec 2025 10:52:57 +0100 Subject: [PATCH] Add missing Playground tests --- tests/examples.rs | 11 +++++++++++ tests/full_data.rs | 11 +++++++++++ 2 files changed, 22 insertions(+) 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 + ) + ); +}