Skip to content

Regression Gen.nonEmptyBuildableOf and dependent methods since 1.14.3 #714

@satorg

Description

@satorg

Consider the following example:

val nestedGen = Gen.listOf(Gen.resize(5, Gen.nonEmptyListOf(Gen.asciiChar)))

Prop
  .forAll(nestedGen, nestedGen, nestedGen, nestedGen, nestedGen, nestedGen, nestedGen, nestedGen) {
    (_, _, _, _, _, _, _, _) => true
  }
  .check()

It usually succeeds on 1.14.3, but almost always fails on 1.15.1 with errors like:

Gave up after only 43 passed tests. 501 tests were discarded.

My guess is that nonEmptyBuildableOf has changed and that made the new implementation less reliable in some cases with a few of non-empty-whatever generators with reduces max size.

See also the initial conversation here.

UPT: duplicates #708, resolved by #709.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions