10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Add ex.initial != ex.final assertion in debug mode

This commit is contained in:
Mickaël Véril 2020-09-22 15:03:37 +02:00
parent 076d9b17e6
commit ef01cced39

View File

@ -348,6 +348,9 @@ class dataFileBase {
for (const ex of dat.excitations) {
console.assert(Number.isNaN(ex.T1.valueOf()) | ex.T1 > 50 | ex.isUnsafe == true, "Must be unsafe", dat, ex)
}
for (const ex of dat.excitations) {
console.assert(JSON.stringify(ex.initial)!==JSON.stringify(ex.final),"Final must be different to initial" dat, ex)
}
}
}
return dat