Open roskakori opened 9 years ago
Goal: decimal values with too many digits after the decimal separator are rejected
Examples:
>>> from cutplace import ranges >>> size_range = ranges.DecimalRange('0...299.99') >>> size_range.validate('size', '0') # ok >>> size_range.validate('size', '299.99') # ok >>> size_range.validate('size', '299.901') # FIXME: should cause cutplace.errors.RangeValueError
Goal: decimal values with too many digits after the decimal separator are rejected
Examples: