Wave 346/509: Engine tests: SMLib's faces, not truck's pieces, in the face counts and measures (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - ee9fc3793 jyviko: Tests: a torus patch to thicken is cut from SMLib's one-face torus - ca53656a2 jyviko: Schema tests: an empty face list is checked on the draft, which refuses it - ab68a3d0f jyviko: View tests: the section cap test draws the cap in the cap colour - 24bcaca03 jyviko: Engine tests: SMLib's faces, not truck's pieces, in the face counts and measures Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
@@ -176,8 +176,8 @@ fn step_export_of_an_enclosure_with_a_screw_hole_finishes_and_reads_back() {
|
||||
let s = replay(include_str!("../../../examples/regressions/step_export_screw_hole_enclosure.json"));
|
||||
let state = s.model.state();
|
||||
let body = &state.body("Unterteil").unwrap().body;
|
||||
// 27 faces; the kernel splits each of the three whole turns (the hole, two standoffs) in two.
|
||||
assert_eq!(body.face_count(), 30);
|
||||
// 27 faces, as the file holds them: each whole turn (the hole, two standoffs) is one face.
|
||||
assert_eq!(body.face_count(), 27);
|
||||
let (text, file_faces) = read_back(&s, body);
|
||||
assert_eq!(text.matches("CYLINDRICAL_SURFACE(").count(), 7, "the seven round faces stay cylinders");
|
||||
assert_eq!(file_faces, 27);
|
||||
|
||||
Reference in New Issue
Block a user