Change IN-SUITE* to update the suite. dev
authorOlof-Joachim Frahm <olof@macrolet.net>
Mon, 3 Dec 2012 21:34:41 +0000 (22:34 +0100)
committerOlof-Joachim Frahm <olof@macrolet.net>
Mon, 3 Dec 2012 21:34:41 +0000 (22:34 +0100)
commit67eea929cb38b01a84a5285baf35e297e21b67cf
treed2c474c83bc1cd822ef97caa5b0175becd8a2fa3
parent4d1390ee929c1593cb0b355048f9f8d0135d9a49
Change IN-SUITE* to update the suite.

See also issue #1.

With this change, the properties, including :IN, are updated while
keeping the suite object alive.  This means however, that because of the
default value of *SUITE* for the parent, resetting the relationship is
error-prone, so an explicit self-check is inserted to prevent a link
from a suite onto itself.

I would be really happy to change the default to T instead of *SUITE*.
That would also make things more explicit in the long run.

Included is also a testcase, which would previously fail (to update the
old object).
src/suite.lisp
t/tests.lisp