Create test method that validate Iterable() custom implementations compliance to the contract.
- test calling next() past the last element raise NoSuchElementException
- test its possible to iterate without calling hasNext()
- and so on
All tests of methods on the Stream interface shall call this method so we can be sure our iterators() are working the way they should.
Create test method that validate Iterable() custom implementations compliance to the contract.
All tests of methods on the Stream interface shall call this method so we can be sure our iterators() are working the way they should.