util.php
2023-03-31 jj5 - this file is for bits and pieces we want in all of our unit tests, including unit tests which are managed by our unit test host and those which, for various reasons, host themselves.
Tags
Table of Contents
- kickass_crypto_setup_unit_test_environment() : void
- 2023-04-05 jj5 - this function will set up a test environment.
- kickass_crypto_get_floats() : void
- 2023-04-05 jj5 - this function will generate a bunch of special purpose floating-point values.
Functions
kickass_crypto_setup_unit_test_environment()
2023-04-05 jj5 - this function will set up a test environment.
kickass_crypto_setup_unit_test_environment() : void
Return values
void —kickass_crypto_get_floats()
2023-04-05 jj5 - this function will generate a bunch of special purpose floating-point values.
kickass_crypto_get_floats([float &$nan = null ][, float &$pos_inf = null ][, float &$neg_inf = null ][, float &$pos_zero = null ][, float &$neg_zero = null ][, float &$float_min = null ][, float &$float_max = null ][, float &$epslion = null ]) : void
Parameters
- $nan : float = null
-
the NaN (Not a Number) floating-point value
- $pos_inf : float = null
-
the positive infinity floating-point value
- $neg_inf : float = null
-
the negative infinity floating-point value
- $pos_zero : float = null
-
the positive zero floating-point value
- $neg_zero : float = null
-
the negative zero floating-point value
- $float_min : float = null
-
the minimum floating-point value
- $float_max : float = null
-
the maximum floating-point value
- $epslion : float = null
-
the smallest absolute non-zero floating-point value