Aktueller Stand
This commit is contained in:
13
backend/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
generated
vendored
Normal file
13
backend/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { array } from './array.js';
|
||||
import { fullUnicode } from './fullUnicode.js';
|
||||
import { codePointsToStringMapper, codePointsToStringUnmapper } from './_internals/mappers/CodePointsToString.js';
|
||||
import { createSlicesForStringLegacy } from './_internals/helpers/SlicesForStringBuilder.js';
|
||||
const safeObjectAssign = Object.assign;
|
||||
export function fullUnicodeString(constraints = {}) {
|
||||
const charArbitrary = fullUnicode();
|
||||
const experimentalCustomSlices = createSlicesForStringLegacy(charArbitrary, codePointsToStringUnmapper);
|
||||
const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), {
|
||||
experimentalCustomSlices,
|
||||
});
|
||||
return array(charArbitrary, enrichedConstraints).map(codePointsToStringMapper, codePointsToStringUnmapper);
|
||||
}
|
||||
Reference in New Issue
Block a user