android-linq icon indicating copy to clipboard operation
android-linq copied to clipboard

Tests should validate Iterator() contract compliance

Open brunovinicius opened this issue 9 years ago • 0 comments

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.

brunovinicius avatar Mar 20 '15 04:03 brunovinicius