Improve snapshot testing (#5856)

* Improve snapshot testing

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Nick Cameron
2025-03-20 11:06:27 +13:00
committed by GitHub
parent 4b6166dc4f
commit a7e09a89ef
551 changed files with 115788 additions and 275855 deletions

View File

@ -5,11 +5,7 @@ description: Artifact commands riddle_small.kcl
[
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "edge_lines_visible",
"hidden": false
@ -17,11 +13,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "set_scene_units",
"unit": "mm"
@ -29,11 +21,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -42,11 +30,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -55,11 +39,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
141,
160,
0
],
"range": [],
"command": {
"type": "make_plane",
"origin": {
@ -84,11 +64,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
166,
193,
0
],
"range": [],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -104,22 +80,14 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
166,
193,
0
],
"range": [],
"command": {
"type": "start_path"
}
},
{
"cmdId": "[uuid]",
"range": [
166,
193,
0
],
"range": [],
"command": {
"type": "move_path_pen",
"path": "[uuid]",
@ -132,22 +100,14 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
166,
193,
0
],
"range": [],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [
199,
217,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -164,11 +124,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
223,
242,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -185,11 +141,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
248,
267,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -206,11 +158,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
273,
281,
0
],
"range": [],
"command": {
"type": "close_path",
"path_id": "[uuid]"
@ -218,11 +166,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -238,11 +182,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "extrude",
"target": "[uuid]",
@ -252,22 +192,14 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "object_bring_to_front",
"object_id": "[uuid]"
@ -275,11 +207,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_extrusion_face_info",
"object_id": "[uuid]",
@ -288,11 +216,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -302,11 +226,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -316,11 +236,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -330,11 +246,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -344,11 +256,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -358,11 +266,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -372,11 +276,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -386,11 +286,7 @@ description: Artifact commands riddle_small.kcl
},
{
"cmdId": "[uuid]",
"range": [
287,
306,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",

View File

@ -7,17 +7,17 @@ description: Result of parsing riddle_small.kcl
"body": [
{
"declaration": {
"end": 14,
"end": 0,
"id": {
"end": 6,
"end": 0,
"name": "ANSWER",
"start": 0,
"type": "Identifier"
},
"init": {
"end": 14,
"end": 0,
"raw": "41803",
"start": 9,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -28,7 +28,7 @@ description: Result of parsing riddle_small.kcl
"start": 0,
"type": "VariableDeclarator"
},
"end": 14,
"end": 0,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
@ -36,11 +36,11 @@ description: Result of parsing riddle_small.kcl
},
{
"declaration": {
"end": 66,
"end": 0,
"id": {
"end": 20,
"end": 0,
"name": "t",
"start": 19,
"start": 0,
"type": "Identifier"
},
"init": {
@ -48,35 +48,35 @@ description: Result of parsing riddle_small.kcl
"body": [
{
"argument": {
"end": 64,
"end": 0,
"left": {
"end": 54,
"end": 0,
"left": {
"end": 46,
"end": 0,
"left": {
"end": 42,
"end": 0,
"name": "ANSWER",
"start": 36,
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
"end": 46,
"end": 0,
"name": "s",
"start": 45,
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 36,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"end": 54,
"end": 0,
"raw": "12345",
"start": 49,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -84,15 +84,15 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 36,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "%",
"right": {
"end": 64,
"end": 0,
"raw": "214748",
"start": 58,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -100,57 +100,57 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 36,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"end": 64,
"start": 28,
"end": 0,
"start": 0,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"end": 66,
"start": 24
"end": 0,
"start": 0
},
"end": 66,
"end": 0,
"params": [
{
"type": "Parameter",
"identifier": {
"end": 22,
"end": 0,
"name": "s",
"start": 21,
"start": 0,
"type": "Identifier"
}
}
],
"start": 20,
"start": 0,
"type": "FunctionExpression",
"type": "FunctionExpression"
},
"start": 19,
"start": 0,
"type": "VariableDeclarator"
},
"end": 66,
"end": 0,
"kind": "fn",
"start": 16,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 79,
"end": 0,
"id": {
"end": 70,
"end": 0,
"name": "xs",
"start": 68,
"start": 0,
"type": "Identifier"
},
"init": {
"end": 79,
"end": 0,
"raw": "205804",
"start": 73,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -158,28 +158,28 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 68,
"start": 0,
"type": "VariableDeclarator"
},
"end": 79,
"end": 0,
"kind": "const",
"start": 68,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 90,
"end": 0,
"id": {
"end": 82,
"end": 0,
"name": "ys",
"start": 80,
"start": 0,
"type": "Identifier"
},
"init": {
"end": 90,
"end": 0,
"raw": "71816",
"start": 85,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -187,30 +187,30 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 80,
"start": 0,
"type": "VariableDeclarator"
},
"end": 90,
"end": 0,
"kind": "const",
"start": 80,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 112,
"end": 0,
"id": {
"end": 93,
"end": 0,
"name": "ox",
"start": 91,
"start": 0,
"type": "Identifier"
},
"init": {
"end": 112,
"end": 0,
"left": {
"end": 98,
"end": 0,
"raw": "35",
"start": 96,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -220,33 +220,33 @@ description: Result of parsing riddle_small.kcl
},
"operator": "-",
"right": {
"end": 112,
"end": 0,
"left": {
"arguments": [
{
"end": 106,
"end": 0,
"name": "xs",
"start": 104,
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 103,
"end": 0,
"name": "t",
"start": 102,
"start": 0,
"type": "Identifier"
},
"end": 107,
"start": 102,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"operator": "%",
"right": {
"end": 112,
"end": 0,
"raw": "70",
"start": 110,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -254,38 +254,38 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 102,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 96,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 91,
"start": 0,
"type": "VariableDeclarator"
},
"end": 112,
"end": 0,
"kind": "const",
"start": 91,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 135,
"end": 0,
"id": {
"end": 116,
"end": 0,
"name": "oy",
"start": 114,
"start": 0,
"type": "Identifier"
},
"init": {
"end": 135,
"end": 0,
"left": {
"end": 121,
"end": 0,
"raw": "35",
"start": 119,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -295,33 +295,33 @@ description: Result of parsing riddle_small.kcl
},
"operator": "-",
"right": {
"end": 135,
"end": 0,
"left": {
"arguments": [
{
"end": 129,
"end": 0,
"name": "ys",
"start": 127,
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 126,
"end": 0,
"name": "t",
"start": 125,
"start": 0,
"type": "Identifier"
},
"end": 130,
"start": 125,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"operator": "%",
"right": {
"end": 135,
"end": 0,
"raw": "70",
"start": 133,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -329,30 +329,30 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"start": 125,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 119,
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 114,
"start": 0,
"type": "VariableDeclarator"
},
"end": 135,
"end": 0,
"kind": "const",
"start": 114,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 306,
"end": 0,
"id": {
"end": 138,
"end": 0,
"name": "r",
"start": 137,
"start": 0,
"type": "Identifier"
},
"init": {
@ -360,22 +360,22 @@ description: Result of parsing riddle_small.kcl
{
"arguments": [
{
"end": 159,
"end": 0,
"raw": "'XZ'",
"start": 155,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 154,
"end": 0,
"name": "startSketchOn",
"start": 141,
"start": 0,
"type": "Identifier"
},
"end": 160,
"start": 141,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -384,40 +384,40 @@ description: Result of parsing riddle_small.kcl
{
"elements": [
{
"end": 184,
"end": 0,
"name": "ox",
"start": 182,
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 188,
"end": 0,
"name": "oy",
"start": 186,
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
],
"end": 189,
"start": 181,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 192,
"start": 191,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 180,
"end": 0,
"name": "startProfileAt",
"start": 166,
"start": 0,
"type": "Identifier"
},
"end": 193,
"start": 166,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -426,17 +426,17 @@ description: Result of parsing riddle_small.kcl
{
"type": "LabeledArg",
"label": {
"end": 207,
"end": 0,
"name": "end",
"start": 204,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 212,
"end": 0,
"raw": "1",
"start": 211,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -445,9 +445,9 @@ description: Result of parsing riddle_small.kcl
}
},
{
"end": 215,
"end": 0,
"raw": "0",
"start": 214,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -456,21 +456,21 @@ description: Result of parsing riddle_small.kcl
}
}
],
"end": 216,
"start": 210,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 203,
"end": 0,
"name": "line",
"start": 199,
"start": 0,
"type": "Identifier"
},
"end": 217,
"start": 199,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -480,17 +480,17 @@ description: Result of parsing riddle_small.kcl
{
"type": "LabeledArg",
"label": {
"end": 231,
"end": 0,
"name": "end",
"start": 228,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 236,
"end": 0,
"raw": "0",
"start": 235,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -500,9 +500,9 @@ description: Result of parsing riddle_small.kcl
},
{
"argument": {
"end": 240,
"end": 0,
"raw": "1",
"start": 239,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -510,28 +510,28 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"end": 240,
"end": 0,
"operator": "-",
"start": 238,
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 241,
"start": 234,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 227,
"end": 0,
"name": "line",
"start": 223,
"start": 0,
"type": "Identifier"
},
"end": 242,
"start": 223,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -541,18 +541,18 @@ description: Result of parsing riddle_small.kcl
{
"type": "LabeledArg",
"label": {
"end": 256,
"end": 0,
"name": "end",
"start": 253,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
"end": 262,
"end": 0,
"raw": "1",
"start": 261,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -560,16 +560,16 @@ description: Result of parsing riddle_small.kcl
"suffix": "None"
}
},
"end": 262,
"end": 0,
"operator": "-",
"start": 260,
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"end": 265,
"end": 0,
"raw": "0",
"start": 264,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -578,21 +578,21 @@ description: Result of parsing riddle_small.kcl
}
}
],
"end": 266,
"start": 259,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 252,
"end": 0,
"name": "line",
"start": 248,
"start": 0,
"type": "Identifier"
},
"end": 267,
"start": 248,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -600,20 +600,20 @@ description: Result of parsing riddle_small.kcl
{
"arguments": [
{
"end": 280,
"start": 279,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 278,
"end": 0,
"name": "close",
"start": 273,
"start": 0,
"type": "Identifier"
},
"end": 281,
"start": 273,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -622,15 +622,15 @@ description: Result of parsing riddle_small.kcl
{
"type": "LabeledArg",
"label": {
"end": 301,
"end": 0,
"name": "length",
"start": 295,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 305,
"end": 0,
"raw": "1",
"start": 304,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -641,40 +641,40 @@ description: Result of parsing riddle_small.kcl
}
],
"callee": {
"end": 294,
"end": 0,
"name": "extrude",
"start": 287,
"start": 0,
"type": "Identifier"
},
"end": 306,
"start": 287,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 306,
"start": 141,
"end": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 137,
"start": 0,
"type": "VariableDeclarator"
},
"end": 306,
"end": 0,
"kind": "const",
"start": 137,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 307,
"end": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"end": 16,
"start": 14,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
@ -683,8 +683,8 @@ description: Result of parsing riddle_small.kcl
],
"1": [
{
"end": 68,
"start": 66,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"

View File

@ -13,11 +13,7 @@ description: Operations executed riddle_small.kcl
],
"unlabeledArg": null,
"labeledArgs": {},
"sourceRange": [
102,
107,
0
]
"sourceRange": []
},
{
"type": "UserDefinedFunctionReturn"
@ -32,11 +28,7 @@ description: Operations executed riddle_small.kcl
],
"unlabeledArg": null,
"labeledArgs": {},
"sourceRange": [
125,
130,
0
]
"sourceRange": []
},
{
"type": "UserDefinedFunctionReturn"
@ -48,19 +40,11 @@ description: Operations executed riddle_small.kcl
"type": "String",
"value": "XZ"
},
"sourceRange": [
155,
159,
0
]
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [
141,
160,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
},
@ -80,19 +64,11 @@ description: Operations executed riddle_small.kcl
}
}
},
"sourceRange": [
304,
305,
0
]
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [
287,
306,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
@ -101,11 +77,7 @@ description: Operations executed riddle_small.kcl
"artifactId": "[uuid]"
}
},
"sourceRange": [
287,
306,
0
]
"sourceRange": []
}
}
]

View File

@ -40,44 +40,28 @@ description: Variables in memory after executing riddle_small.kcl
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
199,
217,
0
],
"sourceRange": [],
"tag": null,
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
223,
242,
0
],
"sourceRange": [],
"tag": null,
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
248,
267,
0
],
"sourceRange": [],
"tag": null,
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
273,
281,
0
],
"sourceRange": [],
"tag": null,
"type": "extrudePlane"
}
@ -89,11 +73,7 @@ description: Variables in memory after executing riddle_small.kcl
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
199,
217,
0
]
"sourceRange": []
},
"from": [
-26.0,
@ -112,11 +92,7 @@ description: Variables in memory after executing riddle_small.kcl
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
223,
242,
0
]
"sourceRange": []
},
"from": [
-25.0,
@ -135,11 +111,7 @@ description: Variables in memory after executing riddle_small.kcl
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
248,
267,
0
]
"sourceRange": []
},
"from": [
-25.0,
@ -158,11 +130,7 @@ description: Variables in memory after executing riddle_small.kcl
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
273,
281,
0
]
"sourceRange": []
},
"from": [
-26.0,
@ -223,11 +191,7 @@ description: Variables in memory after executing riddle_small.kcl
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
166,
193,
0
]
"sourceRange": []
}
},
"artifactId": "[uuid]",

View File

@ -0,0 +1,21 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing riddle_small.kcl
---
ANSWER = 41803
fn t(s) {
return (ANSWER * s + 12345) % 214748
}
xs = 205804
ys = 71816
ox = 35 - (t(xs) % 70)
oy = 35 - (t(ys) % 70)
r = startSketchOn('XZ')
|> startProfileAt([ox, oy], %)
|> line(end = [1, 0])
|> line(end = [0, -1])
|> line(end = [-1, 0])
|> close(%)
|> extrude(length = 1)