Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v6.d REVIEW] Rewrite range iterator tests using helper sub
- Simplify code by using the iterator helper sub, which tests all the values as well as all the optimization methods, if they are implemented. It also tests types of the pulled values - Remove fudges for optional optimization methods. In some of the cases they're not even implementable due to precision of Num Orig: 3ceb07840 - Remove pull-after-IterationEnd tests entirely, as pulling in that case is a violation of the Iterator protocol - Swap `is` to `is-deeply` to test actual types instead of their stringy representation (do a bit of .succ'ing for Nums to avoid potential precision differences)
- Loading branch information
1 parent
6402f02
commit ab6ade4
Showing
1 changed file
with
48 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters