test: land the remaining ignored regression tests from #548-#573 (#582)
Ignored regression tests for #530, #531, #541, #542, #545, #547 and #570, from #548, #549, #550, #552, #555, #573 and #572. Co-authored-by: jonaswre <jonas.wrede@beyondit.gmbh>
This commit is contained in:
1 parent
b1740aeee5
commit
1abd989a67
5 files changed
+179
No files matched your search
@@ -2952,3 +2952,17 @@ fn feature_replies_list_only_the_bodies_they_created() {
|
||||
assert_eq!(r["created_bodies"], json!([]), "{r}");
|
||||
assert_eq!(r["bodies"], json!(["Base"]), "{r}");
|
||||
}
|
||||
|
||||
/// Drafting a cylinder's side face 5° from the base plane makes a cone frustum (#547): radius 10
|
||||
/// at the base, 10 − 20 · tan 5° at the top.
|
||||
#[test]
|
||||
#[ignore = "fails until #547 is fixed"]
|
||||
fn draft_on_a_cylinder_side_makes_a_frustum() {
|
||||
let mut s = Session::default();
|
||||
run(&mut s, "solid.cylinder", json!({"radius": 10, "height": 20}));
|
||||
run(&mut s, "solid.draft", json!({"faces": [[10, 0, 10]], "angle": "5 deg", "neutral": "XY"}));
|
||||
let (big, h) = (10.0, 20.0);
|
||||
let small = big - h * 5f64.to_radians().tan();
|
||||
let expect = PI * h / 3.0 * (big * big + big * small + small * small);
|
||||
assert!(rel(volume(&mut s), expect) < 1e-3, "{} vs {expect}", volume(&mut s));
|
||||
}
|
||||
Reference in new issue
Block a user