UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

55 lines (54 loc) 5 kB
import { pre } from './check/precondition/Pre.js'; import { asyncProperty } from './check/property/AsyncProperty.js'; import { property } from './check/property/Property.js'; import { assert, check } from './check/runner/Runner.js'; import { sample, statistics } from './check/runner/Sampler.js'; import { array } from './check/arbitrary/ArrayArbitrary.js'; import { bigInt, bigIntN, bigUint, bigUintN } from './check/arbitrary/BigIntArbitrary.js'; import { boolean } from './check/arbitrary/BooleanArbitrary.js'; import { falsy } from './check/arbitrary/FalsyArbitrary.js'; import { ascii, base64, char, char16bits, fullUnicode, hexa, unicode } from './check/arbitrary/CharacterArbitrary.js'; import { clonedConstant, constant, constantFrom } from './check/arbitrary/ConstantArbitrary.js'; import { context } from './check/arbitrary/ContextArbitrary.js'; import { date } from './check/arbitrary/DateArbitrary.js'; import { dedup } from './check/arbitrary/DedupArbitrary.js'; import { Arbitrary } from './check/arbitrary/definition/Arbitrary.js'; import { Shrinkable } from './check/arbitrary/definition/Shrinkable.js'; import { dictionary } from './check/arbitrary/DictionaryArbitrary.js'; import { emailAddress } from './check/arbitrary/EmailArbitrary.js'; import { double, float } from './check/arbitrary/FloatingPointArbitrary.js'; import { frequency } from './check/arbitrary/FrequencyArbitrary.js'; import { compareBooleanFunc, compareFunc, func } from './check/arbitrary/FunctionArbitrary.js'; import { domain } from './check/arbitrary/HostArbitrary.js'; import { integer, maxSafeInteger, maxSafeNat, nat } from './check/arbitrary/IntegerArbitrary.js'; import { ipV4, ipV4Extended, ipV6 } from './check/arbitrary/IpArbitrary.js'; import { letrec } from './check/arbitrary/LetRecArbitrary.js'; import { lorem } from './check/arbitrary/LoremArbitrary.js'; import { mapToConstant } from './check/arbitrary/MapToConstantArbitrary.js'; import { memo } from './check/arbitrary/MemoArbitrary.js'; import { mixedCase } from './check/arbitrary/MixedCaseArbitrary.js'; import { anything, json, jsonObject, object, unicodeJson, unicodeJsonObject, } from './check/arbitrary/ObjectArbitrary.js'; import { oneof } from './check/arbitrary/OneOfArbitrary.js'; import { option } from './check/arbitrary/OptionArbitrary.js'; import { record } from './check/arbitrary/RecordArbitrary.js'; import { set } from './check/arbitrary/SetArbitrary.js'; import { infiniteStream } from './check/arbitrary/StreamArbitrary.js'; import { asciiString, base64String, fullUnicodeString, hexaString, string, string16bits, stringOf, unicodeString, } from './check/arbitrary/StringArbitrary.js'; import { shuffledSubarray, subarray } from './check/arbitrary/SubarrayArbitrary.js'; import { genericTuple, tuple } from './check/arbitrary/TupleArbitrary.js'; import { uuid, uuidV } from './check/arbitrary/UuidArbitrary.js'; import { webAuthority, webFragments, webQueryParameters, webSegment, webUrl, } from './check/arbitrary/WebArbitrary.js'; import { commands } from './check/model/commands/CommandsArbitrary.js'; import { asyncModelRun, modelRun, scheduledModelRun } from './check/model/ModelRunner.js'; import { Random } from './random/generator/Random.js'; import { configureGlobal, readConfigureGlobal, resetConfigureGlobal, } from './check/runner/configuration/GlobalParameters.js'; import { VerbosityLevel } from './check/runner/configuration/VerbosityLevel.js'; import { ExecutionStatus } from './check/runner/reporter/ExecutionStatus.js'; import { cloneMethod } from './check/symbols.js'; import { Stream, stream } from './stream/Stream.js'; import { stringify } from './utils/stringify.js'; import { scheduler, schedulerFor, } from './check/arbitrary/AsyncSchedulerArbitrary.js'; import { defaultReportMessage } from './check/runner/utils/RunDetailsFormatter.js'; const __type = 'module'; const __version = '2.0.0'; export { __type, __version, sample, statistics, check, assert, pre, property, asyncProperty, boolean, falsy, float, double, integer, nat, maxSafeInteger, maxSafeNat, bigIntN, bigUintN, bigInt, bigUint, char, ascii, char16bits, unicode, fullUnicode, hexa, base64, mixedCase, string, asciiString, string16bits, stringOf, unicodeString, fullUnicodeString, hexaString, base64String, lorem, constant, constantFrom, clonedConstant, mapToConstant, option, oneof, frequency, dedup, shuffledSubarray, subarray, array, infiniteStream, set, tuple, genericTuple, record, dictionary, anything, object, json, jsonObject, unicodeJson, unicodeJsonObject, letrec, memo, compareBooleanFunc, compareFunc, func, context, date, ipV4, ipV4Extended, ipV6, domain, webAuthority, webSegment, webFragments, webQueryParameters, webUrl, emailAddress, uuid, uuidV, asyncModelRun, modelRun, scheduledModelRun, commands, scheduler, schedulerFor, Arbitrary, Shrinkable, cloneMethod, stringify, defaultReportMessage, ExecutionStatus, Random, Stream, stream, VerbosityLevel, configureGlobal, readConfigureGlobal, resetConfigureGlobal, };