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

Show the first difference when comparing large arrays #320

Open
JanTvrdik opened this issue Jun 19, 2016 · 2 comments
Open

Show the first difference when comparing large arrays #320

JanTvrdik opened this issue Jun 19, 2016 · 2 comments

Comments

@JanTvrdik
Copy link
Contributor

Current result for example:

Failed: array('status' => 'fieldsRequired', 'fields' => array(...)) should be 
    ... array('status' => 'fieldsRequired', 'fields' => array(...)) in testFlowUsCompany()

Expected result for example

Failed: [..., 'fields' => [..., 4 => 'foo', ...]] should be 
    ... [..., 'fields' => [..., 4 => 'bar', ...]] in testFlowUsCompany()

or

Failed: [..., 'fields' =>
            [..., 4 => 'foo', ...]] should be 
        [..., 'fields' =>
            [..., 4 => 'bar', ...]] in testFlowUsCompany()
@JanTvrdik
Copy link
Contributor Author

Another output idea

Failed: ['fields'][4] = 'foo' should be 
        ['fields'][4] = 'bar' in testFlowUsCompany()

This should be easier to implement.

@milo
Copy link
Member

milo commented Jun 30, 2016

I like the second option with path.

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

2 participants