Files
modeling-app/rust/kcl-lib/tests/double_map_fn/program_memory.snap
Nick Cameron 6cce3cda36 Misc tidying up around KclValue, etc. (#5653)
* Make some things a little less public

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

* Rename KclValue::Array to MixedArray

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

* Add settings to KclValue::Function

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

* Remove a bunch of dead code, simplifying mock exec and meaning KclValue no longer needs to deserialize

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

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-03-07 15:04:57 +00:00

188 lines
3.0 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Variables in memory after executing double_map_fn.kcl
---
{
"increment": {
"type": "Function",
"__meta": [
{
"sourceRange": [
12,
34,
0
]
}
]
},
"xs": {
"type": "MixedArray",
"value": [
{
"type": "Number",
"value": 0.0,
"ty": {
"type": "Known",
"type": "Count"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
}
]
},
{
"type": "Number",
"value": 1.0,
"ty": {
"type": "Known",
"type": "Count"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
}
]
},
{
"type": "Number",
"value": 2.0,
"ty": {
"type": "Known",
"type": "Count"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
}
]
}
],
"__meta": [
{
"sourceRange": [
41,
47,
0
]
}
]
},
"ys": {
"type": "MixedArray",
"value": [
{
"type": "Number",
"value": 2.0,
"ty": {
"type": "Unknown"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
},
{
"sourceRange": [
31,
32,
0
]
},
{
"sourceRange": [
31,
32,
0
]
}
]
},
{
"type": "Number",
"value": 3.0,
"ty": {
"type": "Unknown"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
},
{
"sourceRange": [
31,
32,
0
]
},
{
"sourceRange": [
31,
32,
0
]
}
]
},
{
"type": "Number",
"value": 4.0,
"ty": {
"type": "Unknown"
},
"__meta": [
{
"sourceRange": [
41,
47,
0
]
},
{
"sourceRange": [
31,
32,
0
]
},
{
"sourceRange": [
31,
32,
0
]
}
]
}
],
"__meta": [
{
"sourceRange": [
84,
101,
0
]
}
]
}
}