diff --git a/e2e/playwright/snapshot-tests.spec.ts b/e2e/playwright/snapshot-tests.spec.ts index 38e3bf536..6a0db632e 100644 --- a/e2e/playwright/snapshot-tests.spec.ts +++ b/e2e/playwright/snapshot-tests.spec.ts @@ -78,16 +78,16 @@ part001 = startSketchOn(-XZ) |> xLine(endAbsolute = totalLen, tag = $seg03) |> yLine(length = -armThick, tag = $seg01) |> angledLineThatIntersects(angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg04) - |> angledLine(angle = segAng(seg04, %) + 180, endAbsoluteY = turns::ZERO) + |> angledLine(angle = segAng(seg04) + 180, endAbsoluteY = turns::ZERO) |> angledLine( angle = -bottomAng, endAbsoluteY = -totalHeightHalf - armThick, tag = $seg02, ) |> xLine(length = endAbsolute = segEndX(seg03) + 0) - |> yLine(length = -segLen(seg01, %)) + |> yLine(length = -segLen(seg01)) |> angledLineThatIntersects(angle = turns::HALF_TURN, offset = -armThick, intersectTag = seg02) - |> angledLine(angle = segAng(seg02, %) + 180, endAbsoluteY = -baseHeight) + |> angledLine(angle = segAng(seg02) + 180, endAbsoluteY = -baseHeight) |> xLine(endAbsolute = turns::ZERO) |> close() |> extrude(length = 4)` diff --git a/e2e/playwright/testing-segment-overlays.spec.ts b/e2e/playwright/testing-segment-overlays.spec.ts index c7939440f..fa3876d7a 100644 --- a/e2e/playwright/testing-segment-overlays.spec.ts +++ b/e2e/playwright/testing-segment-overlays.spec.ts @@ -781,7 +781,7 @@ profile001 = startProfile(sketch001, at = [56.37, 120.33]) interiorAbsolute = [360.16, 231.76], endAbsolute = [391.48, 131.54], ) - |> yLine(-131.54, %) + |> yLine(length = -131.54) |> arc(angleStart = 33.53, angleEnd = -141.07, radius = 126.46) ` ) diff --git a/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_x.kcl b/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_x.kcl deleted file mode 100644 index 396c6cdee..000000000 --- a/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_x.kcl +++ /dev/null @@ -1,9 +0,0 @@ -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angled( - angle = -angleToMatchLengthX(seg01, 3, %), - endAbsoluteX = 3, - ) - |> close() - |> extrude(length = 10) diff --git a/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_y.kcl b/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_y.kcl deleted file mode 100644 index 3346f324d..000000000 --- a/rust/kcl-lib/e2e/executor/inputs/big_number_angle_to_match_length_y.kcl +++ /dev/null @@ -1,9 +0,0 @@ -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angledLine( - angle = -angleToMatchLengthY(seg01, 3, %), - endAbsoluteX = 3, - ) - |> close() - |> extrude(length = 10) diff --git a/rust/kcl-lib/e2e/executor/inputs/fillet-and-shell.kcl b/rust/kcl-lib/e2e/executor/inputs/fillet-and-shell.kcl deleted file mode 100644 index eac52902c..000000000 --- a/rust/kcl-lib/e2e/executor/inputs/fillet-and-shell.kcl +++ /dev/null @@ -1,79 +0,0 @@ -rpizWidth = 30 -rpizLength = 65 - -caseThickness = 1 - -border = 4 - -screwHeight = 4 - -caseWidth = rpizWidth + border * 2 -caseLength = rpizLength + border * 2 -caseHeight = 8 - -widthBetweenScrews = 23 -lengthBetweenScrews = 29 * 2 - -miniHdmiDistance = 12.4 -microUsb1Distance = 41.4 -microUsb2Distance = 54 - -miniHdmiWidth = 11.2 -microUsbWidth = 7.4 -connectorPadding = 4 - -miniHdmiHole = startSketchOn(XY) - |> startProfile(at = [0, border + miniHdmiDistance - (miniHdmiWidth / 2)]) - |> lineTo([ - 0, - border + miniHdmiDistance + miniHdmiWidth / 2 - ], %) - |> lineTo([ - 1, - border + miniHdmiDistance + miniHdmiWidth / 2 - ], %) - |> lineTo([ - 1, - border + miniHdmiDistance - (miniHdmiWidth / 2) - ], %) - |> close() - -case = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(endAbsolute = [caseWidth, 0], tag = $edge1) - |> line(endAbsolute = [caseWidth, caseLength], tag = $edge2) - |> line(endAbsolute = [0, caseLength], tag = $edge3) - |> close(tag = $edge4) - |> extrude(length = caseHeight) - |> fillet( - radius = 1, - tags = [ - getNextAdjacentEdge(edge1), - getNextAdjacentEdge(edge2), - getNextAdjacentEdge(edge3), - getNextAdjacentEdge(edge4) - ], - ) - - -fn m25Screw(x, y, height) { - screw = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> circle(center= [x, y], radius=2.5) - |> subtract2d(tool = circle(center= [x, y], radius = 1.25)) - |> extrude(length = height) - return screw -} - -m25Screw(x = border + rpizWidth / 2 - (widthBetweenScrews / 2), y = 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), height = screwHeight) - -m25Screw(x = border + rpizWidth / 2 - (widthBetweenScrews / 2), y = 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, height = screwHeight) - -m25Screw(x = border + rpizWidth / 2 + widthBetweenScrews / 2, y = 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, height = screwHeight) - -m25Screw(x = border + rpizWidth / 2 + widthBetweenScrews / 2, y = 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), height = screwHeight) - -shell( - faces = [END], - thickness = caseThickness -) diff --git a/rust/kcl-lib/e2e/executor/inputs/pentagon_fillet_sugar.kcl b/rust/kcl-lib/e2e/executor/inputs/pentagon_fillet_sugar.kcl deleted file mode 100644 index 695d26ef4..000000000 --- a/rust/kcl-lib/e2e/executor/inputs/pentagon_fillet_sugar.kcl +++ /dev/null @@ -1,42 +0,0 @@ -triangleHeight = 200 -plumbusLen = 100 -radius = 80 - -triangleLen = 500 -p = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> angledLine(angle = 60, length = triangleLen, tag = $a) - |> angledLine(angle = 180, length = triangleLen, tag = $b) - |> angledLine(angle = 300, length = triangleLen, tag = $c) - |> extrude(length = triangleHeight) - -fn circl(@x, face) { -return startSketchOn(p, face = face) - |> startProfile(at = [x + radius, triangleHeight/2]) - |> arc( - angleStart = 0, - angleEnd = 360, - radius = radius, - tag = $arc_tag, - ) - |> close() -} - -c1 = circl(-200, face = c) -plumbus1 = - c1 - |> extrude(length = plumbusLen) - |> fillet( - radius = 5, - tags = [c1.tags.arc_tag, getOppositeEdge(c1.tags.arc_tag)] - ) -c2 = circl(200, face = a) -plumbus0 = - c2 - |> extrude(length = plumbusLen) - |> fillet( - radius = 5, - tags = [c2.tags.arc_tag, getOppositeEdge(c2.tags.arc_tag)] - , %) - - diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/ast.snap b/rust/kcl-lib/tests/big_number_angle_to_match_length_x/ast.snap deleted file mode 100644 index 25991a9ad..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/ast.snap +++ /dev/null @@ -1,432 +0,0 @@ ---- -source: kcl-lib/src/simulation_tests.rs -description: Result of parsing big_number_angle_to_match_length_x.kcl ---- -{ - "Ok": { - "body": [ - { - "commentStart": 0, - "declaration": { - "commentStart": 0, - "end": 0, - "id": { - "commentStart": 0, - "end": 0, - "name": "part001", - "start": 0, - "type": "Identifier" - }, - "init": { - "body": [ - { - "arguments": [ - { - "commentStart": 0, - "end": 0, - "raw": "'XY'", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": "XY" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "startSketchOn", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "at", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "elements": [ - { - "commentStart": 0, - "end": 0, - "raw": "0", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 0.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "raw": "0", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 0.0, - "suffix": "None" - } - } - ], - "end": 0, - "start": 0, - "type": "ArrayExpression", - "type": "ArrayExpression" - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "startProfile", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "end", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "elements": [ - { - "commentStart": 0, - "end": 0, - "raw": "1", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 1.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "raw": "3.82", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.82, - "suffix": "None" - } - } - ], - "end": 0, - "start": 0, - "type": "ArrayExpression", - "type": "ArrayExpression" - } - }, - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "tag", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg01" - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "line", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "angle", - "start": 0, - "type": "Identifier" - }, - "arg": { - "argument": { - "arguments": [ - { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "seg01", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name", - "type": "Name" - }, - { - "commentStart": 0, - "end": 0, - "raw": "3", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "angleToMatchLengthX", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - "commentStart": 0, - "end": 0, - "operator": "-", - "start": 0, - "type": "UnaryExpression", - "type": "UnaryExpression" - } - }, - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "endAbsoluteX", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "raw": "3", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.0, - "suffix": "None" - } - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "angledLine", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "close", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "length", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "raw": "10", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 10.0, - "suffix": "None" - } - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "extrude", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - } - ], - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeExpression", - "type": "PipeExpression" - }, - "start": 0, - "type": "VariableDeclarator" - }, - "end": 0, - "kind": "const", - "start": 0, - "type": "VariableDeclaration", - "type": "VariableDeclaration" - } - ], - "commentStart": 0, - "end": 0, - "start": 0 - } -} diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/input.kcl b/rust/kcl-lib/tests/big_number_angle_to_match_length_x/input.kcl deleted file mode 100644 index 086486756..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/input.kcl +++ /dev/null @@ -1,6 +0,0 @@ -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angledLine(angle = -angleToMatchLengthX(seg01, 3, %), endAbsoluteX = 3) - |> close(%) - |> extrude(length = 10) diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/unparsed.snap b/rust/kcl-lib/tests/big_number_angle_to_match_length_x/unparsed.snap deleted file mode 100644 index ad2b23c7c..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_x/unparsed.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: kcl-lib/src/simulation_tests.rs -description: Result of unparsing big_number_angle_to_match_length_x.kcl ---- -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angledLine(angle = -angleToMatchLengthX(seg01, 3, %), endAbsoluteX = 3) - |> close(%) - |> extrude(length = 10) diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/ast.snap b/rust/kcl-lib/tests/big_number_angle_to_match_length_y/ast.snap deleted file mode 100644 index 54e0a3d41..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/ast.snap +++ /dev/null @@ -1,432 +0,0 @@ ---- -source: kcl-lib/src/simulation_tests.rs -description: Result of parsing big_number_angle_to_match_length_y.kcl ---- -{ - "Ok": { - "body": [ - { - "commentStart": 0, - "declaration": { - "commentStart": 0, - "end": 0, - "id": { - "commentStart": 0, - "end": 0, - "name": "part001", - "start": 0, - "type": "Identifier" - }, - "init": { - "body": [ - { - "arguments": [ - { - "commentStart": 0, - "end": 0, - "raw": "'XY'", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": "XY" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "startSketchOn", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "at", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "elements": [ - { - "commentStart": 0, - "end": 0, - "raw": "0", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 0.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "raw": "0", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 0.0, - "suffix": "None" - } - } - ], - "end": 0, - "start": 0, - "type": "ArrayExpression", - "type": "ArrayExpression" - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "startProfile", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "end", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "elements": [ - { - "commentStart": 0, - "end": 0, - "raw": "1", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 1.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "raw": "3.82", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.82, - "suffix": "None" - } - } - ], - "end": 0, - "start": 0, - "type": "ArrayExpression", - "type": "ArrayExpression" - } - }, - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "tag", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "TagDeclarator", - "type": "TagDeclarator", - "value": "seg01" - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "line", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "angle", - "start": 0, - "type": "Identifier" - }, - "arg": { - "argument": { - "arguments": [ - { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "seg01", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name", - "type": "Name" - }, - { - "commentStart": 0, - "end": 0, - "raw": "3", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.0, - "suffix": "None" - } - }, - { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "angleToMatchLengthY", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - "commentStart": 0, - "end": 0, - "operator": "-", - "start": 0, - "type": "UnaryExpression", - "type": "UnaryExpression" - } - }, - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "endAbsoluteX", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "raw": "3", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 3.0, - "suffix": "None" - } - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "angledLine", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - }, - { - "arguments": [ - { - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeSubstitution", - "type": "PipeSubstitution" - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "close", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpression", - "type": "CallExpression" - }, - { - "arguments": [ - { - "type": "LabeledArg", - "label": { - "commentStart": 0, - "end": 0, - "name": "length", - "start": 0, - "type": "Identifier" - }, - "arg": { - "commentStart": 0, - "end": 0, - "raw": "10", - "start": 0, - "type": "Literal", - "type": "Literal", - "value": { - "value": 10.0, - "suffix": "None" - } - } - } - ], - "callee": { - "abs_path": false, - "commentStart": 0, - "end": 0, - "name": { - "commentStart": 0, - "end": 0, - "name": "extrude", - "start": 0, - "type": "Identifier" - }, - "path": [], - "start": 0, - "type": "Name" - }, - "commentStart": 0, - "end": 0, - "start": 0, - "type": "CallExpressionKw", - "type": "CallExpressionKw", - "unlabeled": null - } - ], - "commentStart": 0, - "end": 0, - "start": 0, - "type": "PipeExpression", - "type": "PipeExpression" - }, - "start": 0, - "type": "VariableDeclarator" - }, - "end": 0, - "kind": "const", - "start": 0, - "type": "VariableDeclaration", - "type": "VariableDeclaration" - } - ], - "commentStart": 0, - "end": 0, - "start": 0 - } -} diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/input.kcl b/rust/kcl-lib/tests/big_number_angle_to_match_length_y/input.kcl deleted file mode 100644 index e71f47f38..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/input.kcl +++ /dev/null @@ -1,6 +0,0 @@ -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angledLine(angle = -angleToMatchLengthY(seg01, 3, %), endAbsoluteX = 3) - |> close(%) - |> extrude(length = 10) diff --git a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/unparsed.snap b/rust/kcl-lib/tests/big_number_angle_to_match_length_y/unparsed.snap deleted file mode 100644 index 62b8c69a4..000000000 --- a/rust/kcl-lib/tests/big_number_angle_to_match_length_y/unparsed.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: kcl-lib/src/simulation_tests.rs -description: Result of unparsing big_number_angle_to_match_length_y.kcl ---- -part001 = startSketchOn(XY) - |> startProfile(at = [0, 0]) - |> line(end = [1, 3.82], tag = $seg01) - |> angledLine(angle = -angleToMatchLengthY(seg01, 3, %), endAbsoluteX = 3) - |> close(%) - |> extrude(length = 10)