Skip to content

Decimal Ranges with Borders Excluded

Compare
Choose a tag to compare
@jlink jlink released this 13 Apr 09:11

New and Enhanced Features

  • BigDecimalArbitrary now allows specifying excluded min and max values:

    • BigDecimalArbitrary.between(BigDecimal min, boolean minIncluded, BigDecimal max, boolean maxIncluded)
    • BigDecimalArbitrary.lessThan(BigDecimal max)
    • BigDecimalArbitrary.greaterThan(BigDecimal min)
  • Annotation @BigRange has two new optional attributes minIncluded and maxIncluded

  • DoubleArbitrary now allows specifying excluded min and max values:

    • DoubleArbitrary.between(double min, boolean minIncluded, double max, boolean maxIncluded)
    • DoubleArbitrary.lessThan(double max)
    • DoubleArbitrary.greaterThan(double min)
  • Annotation @DoubleRange has two new optional attributes minIncluded and maxIncluded

  • FloatArbitrary now allows specifying excluded min and max values:

    • FloatArbitrary.between(float min, boolean minIncluded, float max, boolean maxIncluded)
    • FloatArbitrary.lessThan(float max)
    • FloatArbitrary.greaterThan(float min)
  • Annotation @DoubleRange has two new optional attributes minIncluded and maxIncluded

  • Warning about JUnit annotations only shows up when test container class has
    jqwik property or example methods.

  • Upgrade to JUnit Platform 1.6.2

Breaking Changes

  • Minor changes to yet undocumented Lifecycle Hooks API