Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
19
node_modules/fast-check/lib/arbitrary/hexa.js
generated
vendored
Normal file
19
node_modules/fast-check/lib/arbitrary/hexa.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.hexa = hexa;
|
||||
const CharacterArbitraryBuilder_1 = require("./_internals/builders/CharacterArbitraryBuilder");
|
||||
function hexaMapper(v) {
|
||||
return v < 10
|
||||
? v + 48
|
||||
: v + 97 - 10;
|
||||
}
|
||||
function hexaUnmapper(v) {
|
||||
return v < 58
|
||||
? v - 48
|
||||
: v >= 97 && v < 103
|
||||
? v - 97 + 10
|
||||
: -1;
|
||||
}
|
||||
function hexa() {
|
||||
return (0, CharacterArbitraryBuilder_1.buildCharacterArbitrary)(0, 15, hexaMapper, hexaUnmapper);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue