SQL-Unit  1.6
Functions
AssertRealEqualTo.ssunit.sql File Reference

The AssertRealEqualTo stored procedure. More...

Functions

int AssertRealEqualTo (real @expected, real @actual @absTolerance real=null--!< The absolute tolerance.)
 Asserts that the two real numbers are equivalent.

Detailed Description

The AssertRealEqualTo stored procedure.

Author:
Chris Oldwood

Function Documentation

int AssertRealEqualTo ( real @  expected)

Asserts that the two real numbers are equivalent.

If no tolerance is specified the numbers must match exactly which may be acceptable in a unit test where you can pick contrived values that are representable.

Parameters:
expectedThe expected value.