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

Consider making the semantics of extracting more similar to having #533

Open
grodin opened this issue Apr 18, 2024 · 0 comments
Open

Consider making the semantics of extracting more similar to having #533

grodin opened this issue Apr 18, 2024 · 0 comments

Comments

@grodin
Copy link
Contributor

grodin commented Apr 18, 2024

One thing worth exploring would be to add in addition to/replace extracting with a version of eachHaving that more directly mirrors having
ex:

assertThat(allUsers).eachHaving(User::name).isEqualTo(listOf("Alice", "Bob", "Eve"))

assertThat(allUsers).eachHaving("name") { it.name }.isEqualTo(listOf("Alice", "Bob", "Eve"))

Originally posted by @evant in #521 (comment)

I thought this was worth keeping around as a separate issue.

I'm keen to tackle it so opening the issue is as much to help me remember as anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant