Unit testing iterators

Is there a package to test that a type implements the iteration interface correctly?

Just some basic sanity checks, eg if get the size/eltype traits, check that they are consistent, compare repeatedly calling iterate until nothing with length, where applicable, etc.

I recall

but it seems to be abandoned.

Asking because I end up typing the same boilerplate code when I test my iterator implementations.

2 Likes