xtd
0.2.0
Loading...
Searching...
No Matches
◆
are_equal()
[14/16]
static void xtd::tunit::valid::are_equal
(
long double
expected
,
long double
actual
,
long double
tolerance
,
const
xtd::diagnostics::stack_frame
&
stack_frame
)
static
Validates that two type are equal.
Parameters
expected
the expected value.
actual
the actual value.
tolerance
Indicates a tolerance within which they will be considered as equal.
stack_frame
Contains information about current file and current line.
Examples
long
double
ld = 0.00007999999999;
xtd::tunit::valid::are_equal_(0.00008l, ld, 0.0000000000001l,
csf_
);
// test ok.
xtd::tunit::valid::are_equal_(0.00008l, ld, 0.00000000000001l,
csf_
);
// test fails.
csf_
#define csf_
Provides information about the current stack frame.
Definition
current_stack_frame.h:30
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.