Interface: MixedCaseConstraints
Defined in: packages/fast-check/src/arbitrary/mixedCase.ts:10
Constraints to be applied on mixedCase
Remarks
Since 1.17.0
Properties
toggleCase?
optionaltoggleCase?: (rawChar) =>string
Defined in: packages/fast-check/src/arbitrary/mixedCase.ts:16
Transform a character to its upper and/or lower case version
Parameters
| Parameter | Type |
|---|---|
rawChar | string |
Returns
string
Default Value
try toUpperCase on the received code-point, if no effect try toLowerCase
Remarks
Since 1.17.0
untoggleAll?
optionaluntoggleAll?: (toggledString) =>string
Defined in: packages/fast-check/src/arbitrary/mixedCase.ts:22
In order to be fully reversable (only in case you want to shrink user definable values) you should provide a function taking a string containing possibly toggled items and returning its untoggled version.
Parameters
| Parameter | Type |
|---|---|
toggledString | string |
Returns
string