In Test Editor:
In Suitest API:
Only the result from last statement is used for assertion evaluation. The evaluation result is then compared with the expected value as string.
If the code triggers any exceptions then those will be considered test errors and reported accordingly.
var a = 1;
This code is creating a variable in the global scope. If the application happens to use such variable internally, this code may just have corrupted its runtime and thus the test results can not be considered reliable anymore.
constin your expression.