Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
574: Fix and refactor specializations tests r=phimuemue a=SkiFire13 As found in #563 specializations tests don't actually test the specialize tests due to the use of `Box<dyn Iterator>`. This PR fix this problem by having `check_specialized` be a macro so that the code inside (what used to be the) closure directly calls methods on the iterator types. This also does a tiny refactor, moving the single test in `tests/fold_specialization.rs` together with the others in `tests/specializations.rs`. Note that this may conflict with #563 (but I hope it doesn't since they touch different parts of the file) Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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