in reply to Inverting test conditions in Test::More ?
Why don't you test directly for where you know the difference is? You won't need is_deeply since you don't need to check all elements. You only need to check that there is at least one difference, and if you know your input data, you know where to find the difference.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inverting test conditions in Test::More ?
by LanX (Saint) on Jul 24, 2020 at 09:30 UTC | |
by Corion (Patriarch) on Jul 24, 2020 at 13:00 UTC | |
by LanX (Saint) on Jul 24, 2020 at 13:08 UTC | |
by Corion (Patriarch) on Jul 24, 2020 at 13:24 UTC | |
by LanX (Saint) on Jul 24, 2020 at 13:36 UTC | |
| |
by perlfan (Vicar) on Jul 24, 2020 at 12:54 UTC |
In Section
Seekers of Perl Wisdom