Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^7: Inverting test conditions in Test::More ?

by hippo (Chancellor)
on Jul 24, 2020 at 14:09 UTC ( #11119759=note: print w/replies, xml ) Need Help??


in reply to Re^6: Inverting test conditions in Test::More ?
in thread Inverting test conditions in Test::More ?

I can't tell which other test besides is_deeply doesn't provide a negation.

From Test::More I would offer:

  • use_ok
  • require_ok
  • isa_ok
  • can_ok

none of which have a negative. Technically ok doesn't have a negative either but the trivial workaround of negating the argument should be sufficient for that one.


🦛

Replies are listed 'Best First'.
Re^8: Inverting test conditions in Test::More ?
by LanX (Cardinal) on Jul 24, 2020 at 14:30 UTC
    > none of which have a negative.

    Thanks! :)

    > From Test::More I would offer:

    May I add, from Test::More alone!

    There are so many more Test:: modules out there probably not as well designed as Test::More.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11119759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-09-26 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (141 votes). Check out past polls.

    Notices?