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

Feature Request: Array matcher diff #684

Open
didley opened this issue Apr 4, 2024 · 0 comments
Open

Feature Request: Array matcher diff #684

didley opened this issue Apr 4, 2024 · 0 comments

Comments

@didley
Copy link

didley commented Apr 4, 2024

Feature Request

Description:

We have many tests dealing with large arrays, but it can be difficult to determine the reason for the failure with the current array matcher messages.

Would you be open to adding an additional diff section to the array failure messages. I'd be happy to create the PR implementing it.

Possible solution:

I'd imagine it'd be something like this.

    Expected list to have all of the following members:
      [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, …]
    Received:
      [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, …]
    Diff:
    Received is missing: [12, 14, 16]
    Received includes: [13, 15, 17]
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