assertEqApprox

throws AssertError if !eq_approx( a, b )

void
assertEqApprox
(
A
B
E
)
(
A a
,
B b
,
E eps
,
lazy string fmt = "assertEqApprox fails: %s != %s"
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

a
Type: A

first value

b
Type: B

second value

eps
Type: E

epsilon

fmt
Type: string

error message format, must have two string places '%s' for a and b

Meta