2010/5/2 spir ☣ <denis.s...@gmail.com>:
> (There's an extensive intro text, and a test suite with output.)

Did you know FPC comes with a unit testing framework called fpcUnit?
  <fpc>/src/packages/fcl-fpcunit/src

Alternatively you can also use DUnit2 which I ported to Free Pascal a
while back, and has a bit more features and fixes than fpcUnit.
  http://github.com/graemeg/dunit2
To get a copy of the source code repository:
   git clone git://github.com/graemeg/dunit2.git
or click the "download source" link in top left corner.


Using a unit testing framework, it is usually much easier to structure
your tests, or even write your tests.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to