Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing/Decreasing list/seq matchers #850

Closed
sksamuel opened this issue Jun 21, 2019 · 0 comments
Closed

Increasing/Decreasing list/seq matchers #850

sksamuel opened this issue Jun 21, 2019 · 0 comments
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. good-first-issue 👶 Suitable for newcomers looking to contribute to the project.
Milestone

Comments

@sksamuel
Copy link
Member

sksamuel commented Jun 21, 2019

list.shouldBeMonotonicallyIncreasing // 1,2,2,2,3,3,5,6
list.shouldBeStrictlyIncreasing // 1,2,7,8

same for decreasing.

Could work on any type that we have a comparator for as well as the built in common types.

@sksamuel sksamuel added enhancement ✨ Suggestions for adding new features or improving existing ones. good-first-issue 👶 Suitable for newcomers looking to contribute to the project. labels Jun 21, 2019
@sksamuel sksamuel added this to the 3.5 milestone Jun 21, 2019
doyaaaaaken added a commit to doyaaaaaken/kotlintest that referenced this issue Jul 25, 2019
doyaaaaaken added a commit to doyaaaaaken/kotlintest that referenced this issue Jul 25, 2019
doyaaaaaken added a commit to doyaaaaaken/kotlintest that referenced this issue Jul 26, 2019
doyaaaaaken added a commit to doyaaaaaken/kotlintest that referenced this issue Jul 26, 2019
doyaaaaaken added a commit to doyaaaaaken/kotlintest that referenced this issue Jul 26, 2019
sksamuel pushed a commit that referenced this issue Jul 26, 2019
* monotonically decreasing matcher (#850)

* strictly increasing and decreasing matcher (#850)

* monotonicallyIncreasingWith matcher (#850)

* monotonicallyDecreasingWith matcher (#850)

* strictly increasingWith and decreasingWith matcher (#850)
@sksamuel sksamuel mentioned this issue Jul 26, 2019
17 tasks
@sksamuel sksamuel mentioned this issue Sep 4, 2019
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. good-first-issue 👶 Suitable for newcomers looking to contribute to the project.
Projects
None yet
Development

No branches or pull requests

1 participant