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

use ❗❗for but no such element was found instead of » #1089

Open
robstoll opened this issue Jan 6, 2022 · 2 comments
Open

use ❗❗for but no such element was found instead of » #1089

robstoll opened this issue Jan 6, 2022 · 2 comments

Comments

@robstoll
Copy link
Owner

robstoll commented Jan 6, 2022

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

Code related feature

expect(listOf(1, 2, 3, 4)).toHaveElementsAndAny {
    toBeLessThan(0)
}

Results in

I expected subject: [1, 2, 3, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ to contain, in any order: 
  ⚬ an element which needs: 
      » to be less than: 0        (kotlin.Int <1234789>)
      » but no such element was found

It would be nicer (IMO) if it were:

I expected subject: [1, 2, 3, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ to contain, in any order: 
  ⚬ an element which needs: 
      » to be less than: 0        (kotlin.Int <1234789>)
      ❗❗ but no such element was found
@ajayjha5899
Copy link

I can take this up.

@robstoll
Copy link
Owner Author

@ajayjha5899 this is not an easy one and would require too much help from my side if you are a beginner. That's why it does not have the help wanted label. Please check out the other issues

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

No branches or pull requests

2 participants