The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
ShouldApprox.opEquals
mir
test
ShouldApprox
struct
ShouldApprox
(T, F = T)
@
safe
pure nothrow @
nogc
void
opEquals
(
T
expected
,
string
file
= __FILE__
,
int
line
= __LINE__
)
if
(
(
__traits(
isFloating
,
T
) ||
__traits(
hasMember
,
T
, "approxEqual")
)
&&
__traits(
isFloating
,
F
)
)
Meta
Source
See Implementation
mir
test
ShouldApprox
functions
opEquals
variables
maxAbsDiff
maxRelDiff
value