Skip to content

v1.4.0

Compare
Choose a tag to compare
@r8vnhill r8vnhill released this 21 Dec 18:56
· 26 commits to main since this release

[1.4.0] - 2023-12-21

Added

  • [EXPERIMENTAL] BeFinite Constraint:
    • Introduced the BeFinite object in the cl.ravenhill.jakt.constraints.doubles package.
    • This new constraint implements the DoubleConstraint interface and is designed to check if a given Double value is finite.
    • The primary purpose is to enhance the validation capabilities for Double values, ensuring they are neither infinite nor NaN.
  • [EXPERIMENTAL] BeInfinite Double Constraint:
    • Introduced the BeInfinite data object in the constraints.doubles package.
    • This constraint is designed to validate whether a Double value is infinite (either positive or negative infinity).
    • It serves as a crucial tool for scenarios involving mathematical computations or simulations where the concept of infinity is relevant, such as in cases of overflow.
  • [EXPERIMENTAL] BeNaN Double Constraint:
    • Introduced the BeNaN data object within the library, specifically for validating if a Double value is NaN (Not a Number).
    • This new feature significantly enhances the library's capabilities by enabling the detection of NaN values in numerical computations, which is crucial for accurate and reliable data validation in mathematical and scientific applications.
  • [EXPERIMENTAL] #1 Custom Exception Specification for Constraints