assignment: fix property (it was wrong) + always include traces for 'true' and 'false'

This commit is contained in:
Joeri Exelmans 2025-11-07 15:09:21 +01:00
parent fcf9448441
commit 2dd35ab079
2 changed files with 6 additions and 3 deletions

View file

@ -36,7 +36,10 @@ export async function checkProperty(plant: Plant<RT_Statechart, any>, property:
return [entry];
}, [] as {simtime: number, state: any}[]);
let traces = {} as {[key: string]: [number, any][]};
let traces = {
'true': [0, true] as [number, any],
'false': [0, false] as [number, any],
} as {[key: string]: [number, any][]};
for (const {simtime, state} of cleanPlantStates) {
for (const [key, value] of Object.entries(state)) {
// just append