Commit 4607c10
authored
Improve the test for powerSet (#892)
1. Check for validity of the elements of the result, not just
the result.
2. Generate sets in the size range we want, rather than potentially
splitting a larger one. This is more efficient and also gives us
a better shape distribution.
3. Don't bother comparing to a list-based implementation. Once we've
performed all the validity checks (which we should have anyway),
a size test is sufficient.1 parent 991ae11 commit 4607c10
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
0 commit comments