Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
13
node_modules/fast-check/lib/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js
generated
vendored
Normal file
13
node_modules/fast-check/lib/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.restrictedIntegerArbitraryBuilder = restrictedIntegerArbitraryBuilder;
|
||||
const integer_1 = require("../../integer");
|
||||
const WithShrinkFromOtherArbitrary_1 = require("../WithShrinkFromOtherArbitrary");
|
||||
function restrictedIntegerArbitraryBuilder(min, maxGenerated, max) {
|
||||
const generatorArbitrary = (0, integer_1.integer)({ min, max: maxGenerated });
|
||||
if (maxGenerated === max) {
|
||||
return generatorArbitrary;
|
||||
}
|
||||
const shrinkerArbitrary = (0, integer_1.integer)({ min, max });
|
||||
return new WithShrinkFromOtherArbitrary_1.WithShrinkFromOtherArbitrary(generatorArbitrary, shrinkerArbitrary);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue