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

Request: improve differences reporting when number of elements differs #62

Open
PunchyRascal opened this issue Aug 25, 2017 · 0 comments
Labels

Comments

@PunchyRascal
Copy link

PunchyRascal commented Aug 25, 2017

Hi, I was directed here from kingpong/perl-Test-Spec#43 where we discussed improving reporting of differences in Test::Spec.

Would it be possible to improve the difference reporting when the compared objects differ? In case number of their elements matches, the diff is shown, but not otherwise:

   got : array with 5 element(s)
expect : array with 6 element(s)

vs.

 Compared $data->[0][4]
   got : 'foo-downloaded-content'
expect : 'foo-downloaded-contenta'

The first case does not help much to understand what's wrong.

@PunchyRascal PunchyRascal changed the title Request: improve differences reporting when number of elements differ Request: improve differences reporting when number of elements differs Aug 25, 2017
@rjbs rjbs added the Wishlist label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants