[fpc-pascal] Comparing version numbers

Graeme Geldenhuys graemeg.lists at gmail.com
Sat Jun 3 18:07:19 CEST 2006


On 6/3/06, Jilani Khaldi <jilani.khaldi1 at virgilio.it> wrote:
> > Learn to code with UnitTests (process is called Test Driven
> > Development).
>
> Never used. How does this work? I found only a unit called
> "UnitTests.pp" and nothing else.

Use an xUnit testing framework while coding.  Free Pascal comes with
fpcUnit.  Under Delphi people normally use DUnit.  Under Java they use
JUnit, etc...

Regarding TDD (Test Driven Development) look at the following websites:
In short - You write a test, Write the code, Run the tests, Refactor.
Then repeat the whole process...  The first 3 steps should be
completed in under a minute.  As I said, it is very different to
traditional programming style, but once mastered, you can't think of
programming any other way.

http://en.wikipedia.org/wiki/Test_driven_development
http://www.testdriven.com
http://www.agiledata.org/essays/tdd.html

Regards,
  - Graeme -



More information about the fpc-pascal mailing list