HOW2TEST.TXT  J.R. Ferguson Pascal Library - How to Test

Nov 24,1996


How to test the units
=====================

For nearly all units in  the  Pascal  Library  there  is  a  matching  test
program.  Its name can easily be found: for unit xxxLIB the test program is
xxxTST. So CHRLIB.PAS, for instance, can be tested with CHRTST.PAS, and  so
forth.

Some of the test programs include a file xxxTSTM.PAS or xxxTSTMn.PAS, where
n is a number (1,2,3,...). These are menu handling procedure  sources  that
can  be  generated  from  a textfile xxxTSTM[n].TXT, provided with the test
program  sources.  You  need  the  program  MNUGEN.EXE,  to  be  found   in
MNUGEN.ZIP. The syntax is

  MNUGEN xxxTSTM.TXT

If  there  is more than one menu for the test program, you may use WILD.BAT
to process them with a single command:

  WILD MNUGEN xxxTST*.TXT

You may even want to generate all test menu's at once, issuing the command

  WILD MNUGEN *.TXT

Once  the  include  files  for  the  menu's are generated, compile the test
program and execute it. Some of them can be  compiled  for  more  than  one
target environment: DOS real mode, DOS protected mode and Windows.

For the DTMLIB routines there are some  more  test  applications  that  you
might even want to use as stand-alone tools for date manipulation.
  DTMTSTV.PAS   Borland Pascal v7.0 for DOS with Borland Turbo Vision
  DTMTSTW.PAS   Borland Pascal v7.0 for Windows
  DTMTSTW.RC    - resources
  DTMTSTW.INC   - include file
  DTMDTS11.ZIP  Borland Delphi 1.0 for Windows
