SysTestAssert.assertRealEquals Method [AX 2012]
Checks whether two values are equal with regard to a delta.
Syntax
public void assertRealEquals(
real _expected,
real _actual,
[real _delta,
str _message])
Run On
Called
Parameters
- _expected
Type: real
The expected value.
- _actual
Type: real
The actual value.
- _delta
Type: real
The difference; optional.
- _message
Type: str
An error message logged when the assertion test fails; optional.
Remarks
To use this method, create a class that extends the SysTestCase class and then add a method to provide your test logic. For an example of how to use an assertion method, see How to: Create a Test Case.
The following table describes the values in the example described that is shown here.
Description |
Variable |
---|---|
Actual |
A |
Expected |
B |
Delta |
d |
This test is true if (B - d) < A < (B + d).