in reply to Re^2: Inverting test conditions in Test::More ? (workaround)
in thread Inverting test conditions in Test::More ?
Are you testing regular code, or testing other tests?
If the former, why not just something like... or whatever boolean condition.my $cond = 1 == 2; ok( $cond ); # fails ok( ! $cond ); # passes
If the latter, Test::Builder::Tester seems designed to test other tests.
To be fair, I could be misunderstanding - this is not a use case I've come across before.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Inverting test conditions in Test::More ? (workaround)
by LanX (Saint) on Jul 24, 2020 at 13:54 UTC |
In Section
Seekers of Perl Wisdom