Changeset 1675


Ignore:
Timestamp:
Dec 23, 2008, 12:23:40 AM (12 years ago)
Author:
Peter
Message:

adding section on test::Suite::equal* functions. closes #470

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/README

    r1649 r1675  
    7474  test::Suite class (see functions err() and out()).
    7575
     76  When writing numerical tests, it is typically desired to allow for
     77  some small errors in the comparisons. When comparing two doubles
     78  computed within the same program, the error bound should scale with
     79  the machine precision. See test::Suite::equal(3). In other case, for
     80  example, when the comparison includes a double distributed in
     81  'test/data' the error bound should be fixed and reflect the
     82  precision in the distributed file. See test::Suite::equal_fix(3).
     83
    7684  If a test needs a data file, place the data in directory
    7785  'test/data'. However, you should feel free to re-use the data files
Note: See TracChangeset for help on using the changeset viewer.