Typo: tangental should be tangential (#842)

* Typo: tangental should be tangential

* Run executor tests in serial

* Fix typo in image file names
This commit is contained in:
Adam Chalmers
2023-10-12 11:50:54 -05:00
committed by GitHub
parent 396a994fe6
commit 5af9c6b22d
10 changed files with 61 additions and 61 deletions

View File

@ -173,14 +173,14 @@ const wallMountL = 8
const bracket = startSketchAt([0, 0])
|> line([0, wallMountL], %)
|> tangentalArc({
|> tangentialArc({
radius: filletR,
offset: 90
}, %)
|> line([-shelfMountL, 0], %)
|> line([0, -thickness], %)
|> line([shelfMountL, 0], %)
|> tangentalArc({
|> tangentialArc({
radius: filletR - thickness,
offset: -90
}, %)
@ -231,7 +231,7 @@ async fn serial_test_execute_kittycad_svg() {
}
#[tokio::test(flavor = "multi_thread")]
async fn test_member_expression_sketch_group() {
async fn serial_test_member_expression_sketch_group() {
let code = r#"fn cube = (pos, scale) => {
const sg = startSketchOn('XY')
|> startProfileAt(pos, %)
@ -260,7 +260,7 @@ show(b2)"#;
}
#[tokio::test(flavor = "multi_thread")]
async fn test_close_arc() {
async fn serial_test_close_arc() {
let code = r#"const center = [0,0]
const radius = 40
const height = 3
@ -278,7 +278,7 @@ show(body)"#;
}
#[tokio::test(flavor = "multi_thread")]
async fn test_negative_args() {
async fn serial_test_negative_args() {
let code = r#"const width = 5
const height = 10
const length = 12
@ -304,46 +304,46 @@ box(-20, -5, 10)"#;
}
#[tokio::test(flavor = "multi_thread")]
async fn test_basic_tangental_arc() {
async fn serial_test_basic_tangential_arc() {
let code = r#"const boxSketch = startSketchAt([0, 0])
|> line([0, 10], %)
|> tangentalArc({radius: 5, offset: 90}, %)
|> tangentialArc({radius: 5, offset: 90}, %)
|> line([5, -15], %)
|> extrude(10, %)
"#;
let result = execute_and_snapshot(code).await.unwrap();
twenty_twenty::assert_image("tests/executor/outputs/tangental_arc.png", &result, 0.999);
twenty_twenty::assert_image("tests/executor/outputs/tangential_arc.png", &result, 0.999);
}
#[tokio::test(flavor = "multi_thread")]
async fn test_basic_tangental_arc_with_point() {
async fn serial_test_basic_tangential_arc_with_point() {
let code = r#"const boxSketch = startSketchAt([0, 0])
|> line([0, 10], %)
|> tangentalArc([-5, 5], %)
|> tangentialArc([-5, 5], %)
|> line([5, -15], %)
|> extrude(10, %)
"#;
let result = execute_and_snapshot(code).await.unwrap();
twenty_twenty::assert_image("tests/executor/outputs/tangental_arc_with_point.png", &result, 0.999);
twenty_twenty::assert_image("tests/executor/outputs/tangential_arc_with_point.png", &result, 0.999);
}
#[tokio::test(flavor = "multi_thread")]
async fn test_basic_tangental_arc_to() {
async fn serial_test_basic_tangential_arc_to() {
let code = r#"const boxSketch = startSketchAt([0, 0])
|> line([0, 10], %)
|> tangentalArcTo([-5, 15], %)
|> tangentialArcTo([-5, 15], %)
|> line([5, -15], %)
|> extrude(10, %)
"#;
let result = execute_and_snapshot(code).await.unwrap();
twenty_twenty::assert_image("tests/executor/outputs/tangental_arc_to.png", &result, 0.999);
twenty_twenty::assert_image("tests/executor/outputs/tangential_arc_to.png", &result, 0.999);
}
#[tokio::test(flavor = "multi_thread")]
async fn test_different_planes_same_drawing() {
async fn serial_test_different_planes_same_drawing() {
let code = r#"const width = 5
const height = 10
const length = 12
@ -374,7 +374,7 @@ box(-20, -5, 10, 'xy')"#;
}
#[tokio::test(flavor = "multi_thread")]
async fn test_lots_of_planes() {
async fn serial_test_lots_of_planes() {
let code = r#"const sigmaAllow = 15000 // psi
const width = 11 // inch
const p = 150 // Force on shelf - lbs
@ -388,11 +388,11 @@ const wallMountL = 8
const bracket = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> line([0, wallMountL], %)
|> tangentalArc({ radius: filletR, offset: 90 }, %)
|> tangentialArc({ radius: filletR, offset: 90 }, %)
|> line([-shelfMountL, 0], %)
|> line([0, -thickness], %)
|> line([shelfMountL, 0], %)
|> tangentalArc({
|> tangentialArc({
radius: filletR - thickness,
offset: -90
}, %)

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB