intEnumTests
Test factory to create tests for the given enum that is represented by an Int for its internal value.
This method is an alias for enumTests with the following defaults:
InternalValue
is represented by an IntinvalidArb is specified with an
Arb<Int>
Since
0.1.0
Parameters
The enum.
Descriptive name to be passed to the top-level describe()
function.
Function to be used for withData's nameFn
.
The map of internal values to their enum representation.
Function used to convert the internal value to its enum representation.
Arbitrary used to output invalid internal values. This is used to test that the invalid values from this arbitrary returns null
from fromValueOrNullFn.
Test factory to create tests for the given enum that is represented by an Int for its internal value.
This method is an alias for enumTests with the following defaults:
InternalValue
is represented by an IntKProperty0 keys can be passed to enumValuesMap
invalidArb is specified with an
Arb<Int>
Since
0.1.0
Parameters
The enum.
Descriptive name to be passed to the top-level describe()
function.
Function to be used for withData's nameFn
.
The map of internal values to their enum representation.
Function used to convert the internal value to its enum representation.
Arbitrary used to output invalid internal values. This is used to test that the invalid values from this arbitrary returns null
from fromValueOrNullFn.