Contents

ArgumentMatcher.range(argumentName:minimum:maximum:)

A value that indicates that the argument must be present and its numeric value must be within the specified range.

Declaration

case range(argumentName: String, minimum: Double?, maximum: Double?)

Parameters

  • argumentName:

    The name of the argument to validate.

  • minimum:

    The lower bound of the allowed range, or nil for no lower bound.

  • maximum:

    The upper bound of the allowed range, or nil for no upper bound.

Mentioned in

See Also

Set and range matching