|XP is just a number|
Inverting test conditions in Test::More ?by LanX (Cardinal)
|on Jul 24, 2020 at 08:51 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
What's the recommended way to invert a test? IOW I want it to fail?
E.g Test::More has is_deeply() but no is_not_deeply()
See Re: Test scalar refs (not values) in deeply nested structure (workaround) for examples which need to fail.
Do I really need to redirect the TAP output and parse it again?
Not looking for workarounds for is_deeply but for general test logic. ( I could just serialize a nested structure with Data::Dump and compare the strings)