test 1
  bar := 3  // does work, first use of "bar"

test 2
  bar := 2  // does not work, "bar" already bound to 3

Looks like variables retain their value between different tests, and between different test runs.

Might need some scoping here and there.

The same thing happens when putting only test 1 in a .spt file, and changing the number. It will remember the first number you use, and all other numbers will make the test fail.

Submitted by Tobi Vollebregt on 1 March 2012 at 15:10

On 1 March 2012 at 15:10 Tobi Vollebregt tagged testing

On 12 March 2012 at 13:03 Adil Akhter tagged !adil

Log in to post comments