Fix bad example (#2120)

* fix example

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix example

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fxi

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-15 19:37:59 -07:00
committed by GitHub
parent f29573f3dc
commit 9b0f9f321b
21 changed files with 16 additions and 13 deletions

View File

@ -1737,10 +1737,13 @@ const sketch001 = startSketchOn(box, "revolveAxis")
"#;
let result = execute_and_snapshot(code, kittycad::types::UnitLength::Mm)
.await
.unwrap();
twenty_twenty::assert_image("tests/executor/outputs/revolve_on_edge_get_edge.png", &result, 1.0);
let result = execute_and_snapshot(code, kittycad::types::UnitLength::Mm).await;
assert!(result.is_err());
assert_eq!(
result.err().unwrap().to_string(),
r#"engine: KclErrorDetails { source_ranges: [SourceRange([349, 409])], message: "Modeling command failed: Some([ApiError { error_code: InternalEngine, message: \"Solid3D revolve failed: sketch profile must lie entirely on one side of the revolution axis\" }])" }"#
);
}
#[tokio::test(flavor = "multi_thread")]