Files
RoggioApp/node_modules/fast-check/lib/arbitrary/_internals/mappers/CharsToString.js
T
2026-04-26 19:42:42 +02:00

15 lines
510 B
JavaScript
Executable File

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.charsToStringMapper = charsToStringMapper;
exports.charsToStringUnmapper = charsToStringUnmapper;
const globals_1 = require("../../../utils/globals");
function charsToStringMapper(tab) {
return (0, globals_1.safeJoin)(tab, '');
}
function charsToStringUnmapper(value) {
if (typeof value !== 'string') {
throw new Error('Cannot unmap the passed value');
}
return (0, globals_1.safeSplit)(value, '');
}