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
nilfor no lower bound. - maximum:
The upper bound of the allowed range, or
nilfor no upper bound.