Merge ws/develop-456e5b7 into ws/combined-1031
This commit is contained in:
commit
b9659c8e5d
1 file changed
+4
-3
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user