Perl: the Markov chain saw | |
PerlMonks |
Re^6: Inverting test conditions in Test::More ?by LanX (Saint) |
on Jul 24, 2020 at 13:36 UTC ( [id://11119755]=note: print w/replies, xml ) | Need Help?? |
The test data is generated, finding the difference manually isn't easy. Furthermore, the idea of having Boolean logic for tests is straightforward and makes the code elegant and readable. Most importantly it's generic, I can't tell which other test besides is_deeply doesn't provide a negation. And I learned a lot about the test suite, especially Test::Builder in the course of this thread, just by asking this "silly question".
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|