SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
test(mcp): compare the scratch folder by its canonical path (#965)
Mateusz Sych482abb456269
diff --git a/crates/mcp/src/tests.rs b/crates/mcp/src/tests.rsindex b205f2943f..711792665c 100644--- a/crates/mcp/src/tests.rs+++ b/crates/mcp/src/tests.rs@@ -473,7 +473,7 @@ fn the_default_folders_are_the_designs_the_recovery_folder_and_the_scratch_foldelet cwd = std::fs::canonicalize(std::env::current_dir().unwrap()).unwrap();assert!(!scope.roots().contains(&cwd), "the working folder is not a default folder: {scope:?}");assert!(scope.roots().contains(&std::fs::canonicalize(&recovery).unwrap()), "{scope:?}");- assert!(scope.roots().contains(&crate::scratch_dir().unwrap()), "{scope:?}");+ assert!(scope.roots().contains(&std::fs::canonicalize(crate::scratch_dir().unwrap()).unwrap()), "{scope:?}");let mut session = solidcraft_engine::Session::default();session.execute("solid.box", &json!({"length": 10, "width": 10, "height": 10})).unwrap();