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

also add reportOptions to inAnyOrder.only #1094

Closed
robstoll opened this issue Jan 11, 2022 · 1 comment
Closed

also add reportOptions to inAnyOrder.only #1094

robstoll opened this issue Jan 11, 2022 · 1 comment
Assignees
Milestone

Comments

@robstoll
Copy link
Owner

robstoll commented Jan 11, 2022

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

Code related feature

expect(listOf(1, 2, 2, 4)).toContain.inAnyOrder.only.values(1, 2, 3, 4)

Results per default in:

I expected subject: [1, 2, 2, 4]        (java.util.Arrays.ArrayList <1234789>)
◆ to contain, in any order: 
  ⚬ an element which needs: 
      » to be less than: 3        (kotlin.Int <1234789>)
    ⚬ ▶ number of such elements: 3
        ◾ is at most: 2

I suggest we apply the same strategy regarding showing all successful or not like we use for inOrder.only, i.e. show only failing if there are more than 10 expected elements and add option to change the options

@robstoll robstoll added this to the 0.18.0 milestone Jan 11, 2022
@robstoll robstoll self-assigned this Jan 11, 2022
@robstoll robstoll linked a pull request Apr 9, 2022 that will close this issue
robstoll added a commit that referenced this issue Apr 9, 2022
@robstoll
Copy link
Owner Author

some specs are missing, moving them to own issues

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