Johannes Link

Results 390 comments of Johannes Link

> Thanks for all the answers. Since list shrinking by removing all unnecessary elements in list was essential for solving the problem at hand, I had to abandon QuickTheories and...

> WDYT of adding https://github.com/amaembo/streamex for `least(int n)` collector so the stream could collect "top n" without buffering everything at once? It looks like a trustworthy lib. Thing is that...

> I tried "proper sort limit" in https://github.com/jlink/jqwik/pull/436/files#diff-24f2363e5b549d73b76a697390516a86b444e6f9962c24032fb71a4dc7ce12ceR48-R49, however, it does really solve the issue. You mean, it does _NOT_ really solve the issue?

> At the same time, replacing `element.shrink()` with `element.shrink().limit(100)` makes the test much faster as well (e.g. 8 sec -> 1.5 sec). Limiting the search space will improve shrinking times...

Thanks @owickstrom! I'll take you up on that offer some day - hopefully not too far in the future.

> This does not look like a seed size issue to me. If your random source is N bits, you can still generate random values of any M>N bits by...

Maybe you’re right. @BeforeProperty would be redundant though, since standard lifecycle creates a new instance of the test class anyway. Und less it’s allowed for static variables as well…

@adam-waldenberg `@BeforeContainer MyType myValue = new MyType()` would be the same as a static variable, right? Or would there be a value in having a static value injected as member...