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:
79
src/wasm-lib/kcl/tests/if_else/program_memory.snap
Normal file
79
src/wasm-lib/kcl/tests/if_else/program_memory.snap
Normal 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
|
||||
}
|
Reference in New Issue
Block a user