is-approx-calculate
ErrorsCollection

is-approx-calculate

Synthesised documentation from type/Test

From type/Test

See Original text in context

sub is-approx-calculate($got$expected$abs-tol where { !.defined or $_ >= 0 },
                        $rel-tol where { !.defined or $_ >= 0 }$desc)

This is the actual routine called by is-approx when absolute and relative tolerance are specified. They are tested independently, and the test succeeds only if both pass.