Move tests into simulation (#4487)
Replace wasm-lib integration tests with KCL simulation tests.
This commit is contained in:
20
src/wasm-lib/kcl/tests/sketch_on_face_end/input.kcl
Normal file
20
src/wasm-lib/kcl/tests/sketch_on_face_end/input.kcl
Normal file
@ -0,0 +1,20 @@
|
||||
fn cube = (pos, scale) => {
|
||||
sg = startSketchOn('XY')
|
||||
|> startProfileAt(pos, %)
|
||||
|> line([0, scale], %)
|
||||
|> line([scale, 0], %)
|
||||
|> line([0, -scale], %)
|
||||
|
||||
return sg
|
||||
}
|
||||
part001 = cube([0, 0], 20)
|
||||
|> close(%)
|
||||
|> extrude(20, %)
|
||||
|
||||
part002 = startSketchOn(part001, "END")
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line([0, 10], %)
|
||||
|> line([10, 0], %)
|
||||
|> line([0, -10], %)
|
||||
|> close(%)
|
||||
|> extrude(5, %)
|
||||
Reference in New Issue
Block a user