Merge ws/develop-456e5b7 into ws/combined-1031

This commit is contained in:
brett19 committed 2026-10-31 03:23:48 +01:00
commit b9659c8e5d
1 file changed
+4 -3
+4 -3
View File
@@ -968,8 +968,8 @@ mod tests {
assert!(result.is_err_and(|e| e.to_string().contains("not a regular file")));
}
/// A saved model of one state holding `bodies` (no document evaluated it: enough for the
/// container, which stores whatever model it is given).
/// A saved model of one state holding `bodies`, none made by rounds (no document evaluated
/// it: enough for the container, which stores whatever model it is given).
fn saved_model(bodies: Vec<solidcraft_kernel::Body>) -> solidcraft_doc::SavedModel {
let records: Vec<Value> = (0..bodies.len())
.map(|i| json!({"name": format!("Body{i}"), "feature": 1, "component": 0, "key": "0000000000000001", "names": 0, "body": i}))
@@ -982,6 +982,7 @@ mod tests {
records: json!({
"features": [{"id": 1, "fingerprint": "0000000000000000", "ms": 0.0, "skipped": false, "state": 0}],
"states": [state], "model_bodies": records, "names": [{"faces": [], "info": []}], "sketches": [], "sheets": [],
"rounds": [],
}),
bodies,
}
@@ -1089,7 +1090,7 @@ mod tests {
solidcraft_doc::SavedModel {
records: json!({
"features": features, "states": states, "model_bodies": records, "names": [{"faces": [], "info": []}], "sketches": [],
"sheets": [], "validation": "each_feature",
"sheets": [], "validation": "each_feature", "rounds": [],
}),
bodies,
}