Skip to content

Move hasNext() check out of Iterable.all #305

@robstoll

Description

@robstoll

Platform (jvm, js, android):all
Extension (none, kotlin 1.3, jdk8): none

Code related feature

Similar to #299 but for Iterable.none and iterable.all. Following an example:

expect: [1, 2, 3, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ does not contain: 
  ⚬ an entry which: 
      » is greater than: 2        (kotlin.Int <1234789>)
    ✘ ▶ number of occurrences: 2
        ◾ is: 0        (kotlin.Int <1234789>)
    ✔ ▶ has at least one element: true
        ◾ is: true

Moreover, it should re-use the hasNext check instead of an own descriptive assertion

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions