Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
14
node_modules/fast-check/lib/arbitrary/_internals/mappers/CodePointsToString.js
generated
vendored
Normal file
14
node_modules/fast-check/lib/arbitrary/_internals/mappers/CodePointsToString.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.codePointsToStringMapper = codePointsToStringMapper;
|
||||
exports.codePointsToStringUnmapper = codePointsToStringUnmapper;
|
||||
const globals_1 = require("../../../utils/globals");
|
||||
function codePointsToStringMapper(tab) {
|
||||
return (0, globals_1.safeJoin)(tab, '');
|
||||
}
|
||||
function codePointsToStringUnmapper(value) {
|
||||
if (typeof value !== 'string') {
|
||||
throw new Error('Cannot unmap the passed value');
|
||||
}
|
||||
return [...value];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue