Move tests from no_visuals into simulation tests (#4367)

Now you can properly inspect program memory for the no_visuals tests, instead of relying on a lot of KCL asserts.
This commit is contained in:
Adam Chalmers
2024-11-04 20:34:22 -06:00
committed by GitHub
parent ad1cd56891
commit 2abfbb9788
48 changed files with 22863 additions and 360 deletions

View File

@ -0,0 +1,79 @@
---
source: kcl/src/simulation_tests.rs
description: Program memory after executing if_else.kcl
snapshot_kind: text
---
{
"environments": [
{
"bindings": {
"HALF_TURN": {
"type": "UserVal",
"type": "UserVal",
"value": 180,
"__meta": []
},
"QUARTER_TURN": {
"type": "UserVal",
"type": "UserVal",
"value": 90,
"__meta": []
},
"THREE_QUARTER_TURN": {
"type": "UserVal",
"type": "UserVal",
"value": 270,
"__meta": []
},
"ZERO": {
"type": "UserVal",
"type": "UserVal",
"value": 0,
"__meta": []
},
"a": {
"type": "UserVal",
"type": "UserVal",
"value": 3,
"__meta": [
{
"sourceRange": [
64,
65
]
}
]
},
"b": {
"type": "UserVal",
"type": "UserVal",
"value": 4,
"__meta": [
{
"sourceRange": [
199,
200
]
}
]
},
"c": {
"type": "UserVal",
"type": "UserVal",
"value": 5,
"__meta": [
{
"sourceRange": [
332,
333
]
}
]
}
},
"parent": null
}
],
"currentEnv": 0,
"return": null
}