See Original text in context
multi sub is-approx(Numeric , Numeric , = '')
multi sub is-approx(Numeric , Numeric , Numeric ,= '')
multi sub is-approx(Numeric , Numeric , = '',Numeric : is required)
multi sub is-approx(Numeric , Numeric , = '',Numeric : is required)
multi sub is-approx(Numeric , Numeric , = '',Numeric : is required,Numeric : is required)
Marks a test as passed if the $got
and $expected
numerical values are approximately equal to each other. The subroutine can be called in numerous ways that let you test using relative tolerance ($rel-tol
) or absolute tolerance ($abs-tol
) of different values.
If no tolerance is set, the function will base the tolerance on the absolute value of $expected
: if it's smaller than 1e-6
, use absolute tolerance of 1e-5
; if it's larger, use relative tolerance of 1e-6
.
my Numeric (, , , ) = ...is-approx , ;is-approx , , 'test description';is-approx , , ;is-approx , , , 'test description';is-approx , , :;is-approx , , :, 'test description';is-approx , , :;is-approx , , :, 'test description';is-approx , , :, :;is-approx , , :, :, 'test description';