Skip to content

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

@PunchyRascal

Description

@PunchyRascal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions