API Reference | fast-check | Property based testing framework
    Preparing search index...

    Type Alias IntArrayConstraints

    Constraints to be applied on typed arrays for integer values

    Since 2.9.0

    type IntArrayConstraints = {
        max?: number;
        maxLength?: number;
        min?: number;
        minLength?: number;
        size?: SizeForArbitrary;
    }
    Index

    Properties

    max?: number

    Upper bound for the generated int (included)

    highest possible value for this type
    

    Since 2.9.0

    maxLength?: number

    Upper bound of the generated array size

    0x7fffffff — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true

    Since 2.9.0

    min?: number

    Lower bound for the generated int (included)

    smallest possible value for this type
    

    Since 2.9.0

    minLength?: number

    Lower bound of the generated array size

    0
    

    Since 2.9.0

    Define how large the generated values should be (at max)

    Since 2.22.0