~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to lib/cppunit-1.10.0/src/cppunit/TestAssert.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2006-11-11 10:32:06 UTC
  • Revision ID: james.westby@ubuntu.com-20061111103206-f3p0r9g0vq44rp3r
Tags: upstream-3.0.PRE5
ImportĀ upstreamĀ versionĀ 3.0.PRE5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if HAVE_CMATH
 
2
#   include <cmath>
 
3
#else
 
4
#   include <math.h>
 
5
#endif
 
6
 
 
7
#include <cppunit/TestAssert.h>
 
8
 
 
9
 
 
10
CPPUNIT_NS_BEGIN
 
11
 
 
12
 
 
13
void 
 
14
assertDoubleEquals( double expected,
 
15
                    double actual,
 
16
                    double delta,
 
17
                    SourceLine sourceLine )
 
18
{
 
19
  Asserter::failNotEqualIf( fabs( expected - actual ) > delta,
 
20
                            assertion_traits<double>::toString(expected),
 
21
                            assertion_traits<double>::toString(actual),
 
22
                            sourceLine );
 
23
}
 
24
 
 
25
 
 
26
CPPUNIT_NS_END