We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the code
assertArrayEquals(new int[]{1,2,3}, new int[]{2,3,4,5});
I get the error message
java.lang.AssertionError: array lengths differed, expected.length=3 actual.length=4
But this doesn't tell me much about why it failed - if the length is wrong, then what are the extra values?
I would rather see an error message that shows both array contents:
java.lang.AssertionError: Expected :[1, 2, 3] Actual :[2, 3, 4, 5]
Which is actually what you get when you convert your arrays to lists first.
assertEquals(Arrays.asList(1,2,3), Arrays.asList(2,3,4,5));
Could the output format be changed to show both the contents of both arrays?
The text was updated successfully, but these errors were encountered:
It looks like this was fixed by #1300
@dylan-chong can you confirm that the above pull fixes your issue?
Sorry, something went wrong.
Ah yes that looks like it fixes this issue. Thanks.
No branches or pull requests
With the code
I get the error message
But this doesn't tell me much about why it failed - if the length is wrong, then what are the extra values?
I would rather see an error message that shows both array contents:
Which is actually what you get when you convert your arrays to lists first.
Could the output format be changed to show both the contents of both arrays?
The text was updated successfully, but these errors were encountered: