sahvx655-wq commented on PR #401: URL: https://github.com/apache/commons-validator/pull/401#issuecomment-4754151977
Added `testBigDecimalNonFiniteBounds` covering all three as bounds for `minValue`, `maxValue` and `isInRange`. No main change was needed: `BigDecimal.valueOf` rejects non-finite doubles, so a `NaN` or `±Infinity` bound keeps the `doubleValue()` comparison path, which already behaves sensibly. A `NaN` bound is never satisfied because every comparison against `NaN` is false; `POSITIVE_INFINITY` as a maximum (and `NEGATIVE_INFINITY` as a minimum) is an open bound any finite value meets, while the reverse pair cannot be met by a finite value. The new test asserts each of those cases. Full suite stays green (1068 tests) and the default `mvn` goal builds clean. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
