xtd
0.2.0
Loading...
Searching...
No Matches
◆
are_equal()
[5/16]
static void xtd::tunit::valid::are_equal
(
float
expected
,
float
actual
,
float
tolerance
)
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.
Examples
float
f
= 0.00007999999999f;
xtd::tunit::valid::are_equal_(0.00008f,
f
, 0.0000000000001f);
// test ok.
xtd::tunit::valid::are_equal_(0.00008f,
f
, 0.00000000000001f);
// test fails.
xtd::console_key::f
@ f
The F key.
xtd
tunit
valid
Generated on Sat Sep 14 2024 21:25:32 for xtd by
Gammasoft
. All rights reserved.