Skip to content

Tests should validate Iterator() contract compliance #9

@brunovinicius

Description

@brunovinicius

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions