[crossfire] Unit tests

Lalo Martins lalo.martins at gmail.com
Wed Mar 8 05:04:41 CST 2006


And so says Mark Wedel on 08/03/06 14:36...
>   For example, a lot tests may require non trivial maps, so it takes some time 
> to create that map...

note, we're talking about "unit" tests here.  By definition, they don't
use maps.  The traditional "unit" for C unit tests is a function - so
each test case (a set of individual tests) will test a given function.
Unit tests are much more low-level than a few of the posters in this
thread are thinking.

The kind of tests that would include loading maps and checking for
correct behaviour, is what we usually call "functional" tests.  They are
desirable too, but much harder to get right and complete than unit tests.

best,
                                               Lalo Martins
--
      So many of our dreams at first seem impossible,
       then they seem improbable, and then, when we
       summon the will, they soon become inevitable.
--
personal:                              http://www.laranja.org/
technical:                    http://lalo.revisioncontrol.net/
GNU: never give up freedom                 http://www.gnu.org/




More information about the crossfire mailing list