<div>Try#2 Dont hardcode env var names in checking routine<br></div><div>-     Make checking routine a reuseable routine for elsewhere</div><div>-     Rename var1/2/3 to foo, bar, baz as per elsewhere</div><div><br></div><div>
The tests previously set a variable which was not checked until</div><div>the subsequent test completed (as env vars are expanded as the</div><div>line is read, meaning a sequence of set /a var=x & echo %var%</div><div>
echos the contents before the set is executed). In addition when</div><div>multiple variables are involved in the calculation, only the</div><div>first one was being checked, and this is changed to check all</div><div>variables involved in the calculation.</div>