smoke test

This commit is contained in:
2026-06-08 23:13:59 -07:00
parent ea7e122404
commit 206361b085
3 changed files with 21 additions and 2 deletions
+13
View File
@@ -14,3 +14,16 @@ fn test_is_winnable() {
println!("Game is not winnable");
}
}
#[test]
fn test_serde() {
let mut session = Session::new_default(Klondike::with_seed(124));
let solution_result = session.solve();
if let Ok(Some(solution)) = solution_result {
for snapshot in solution.clean_solution() {
session.process_instruction(snapshot.instruction().clone());
}
}
let serialized = serde_json::to_string(&session).unwrap();
println!("serialized = {serialized}");
}