Skip to main content

Function: mixedCase()

mixedCase(stringArb, constraints?): Arbitrary<string>

Defined in: packages/fast-check/src/arbitrary/mixedCase.ts:45

Randomly switch the case of characters generated by stringArb (upper/lower)

WARNING: Require bigint support. Under-the-hood the arbitrary relies on bigint to compute the flags that should be toggled or not.

Parameters

ParameterTypeDescription
stringArbArbitrary<string>Arbitrary able to build string values
constraints?MixedCaseConstraintsConstraints to be applied when computing upper/lower case version

Returns

Arbitrary<string>

Remarks

Since 1.17.0