Move more KCL executor tests into simulation tests (#4540)
This commit is contained in:
13
src/wasm-lib/kcl/tests/function_sketch/input.kcl
Normal file
13
src/wasm-lib/kcl/tests/function_sketch/input.kcl
Normal file
@ -0,0 +1,13 @@
|
||||
fn box = (h, l, w) => {
|
||||
myBox = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line([0, l], %)
|
||||
|> line([w, 0], %)
|
||||
|> line([0, -l], %)
|
||||
|> close(%)
|
||||
|> extrude(h, %)
|
||||
|
||||
return myBox
|
||||
}
|
||||
|
||||
fnBox = box(3, 6, 10)
|
||||
Reference in New Issue
Block a user