saynotobugsorg / confidence

A declarative Java Assertion Framework
Apache License 2.0
11 stars 1 forks source link

`orderedBy` Quality that describes an `Iterable` which returns its elements in a specific order. #157

Closed dmfs closed 10 months ago

dmfs commented 10 months ago

The idea is to be able to check the order of elements of an Iterable without having to name them all (which may be problematic for large or unpredictable results). This would by my solution for https://github.com/hamcrest/JavaHamcrest/pull/404, i.e. check that the elements are ordered as expected and test that all or some of the elements are indeed present.