Добавлена ДБ

This commit is contained in:
Georgiy Syralev
2025-09-15 18:10:26 +03:00
parent 253ad8c19b
commit c954b5268e
5824 changed files with 1107594 additions and 19141 deletions

12
node_modules/fast-check/lib/esm/arbitrary/stringOf.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import { array } from './array.js';
import { patternsToStringMapper, patternsToStringUnmapperFor } from './_internals/mappers/PatternsToString.js';
import { createSlicesForStringLegacy } from './_internals/helpers/SlicesForStringBuilder.js';
const safeObjectAssign = Object.assign;
export function stringOf(charArb, constraints = {}) {
const unmapper = patternsToStringUnmapperFor(charArb, constraints);
const experimentalCustomSlices = createSlicesForStringLegacy(charArb, unmapper);
const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), {
experimentalCustomSlices,
});
return array(charArb, enrichedConstraints).map(patternsToStringMapper, unmapper);
}