Hi!
I'm really excited, I just wrote my first unit test script for FreeSCI! It
tests at which points CoordToPri() reports a change in return value. The
important source is at the end of this email.
The good news:
FSCI matches SSCI version 0.000.572 and above. You guys probably already
knew this, but having a script run in both interpreters to accurately
report it is kind of nice!
The bad news:
SSCI 0.000.490 has slight variations -- the priority band for 10, 12, and
14 start at 137, 158, and 179. (As opposed to 138, 159, and 180 in 0.572
and above.) When I tried to use FSCI's -V parameter to emulate version
0.490, I got crashes. I tried -V490 and -V0.000.490. The first just output
the same numbers as before. The second one caused a crash!
the script:
(method (play)
(var currPri = 0, lastPri = -1, i = 0)
= gGame self
(self:init())
(for (= i 0) (< i 190) (++i)
= currPri (CoordPri(i))
(if (not (== currPri lastPri))
FormatPrint("priorty %u starts at %u"
currPri
i
#font 0
#button "OK" 1
)
)
= lastPri currPri
)
)
We should be able to find bugs much more easily now and with greater
accuracy than even before! Thanks to Brian for making this possible!
--
http://www.clock.org/~matt