Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
my $result = lives_ok {$o->answer} 'answer worked'; is $result, 42, 'answer returned 42';
Depending on what semantics you intend, this simple case seems to be adequately covered by either: is eval { $o->answer }, 42, 'answer returned 42';
is do { lives_ok {$o->answer} 'answer worked' }, 42, 'answer returned 42';

The former treats the exception and is as a single test, the latter as two separate ones.

I looked at your Test::Exception and don't see any other tests that make sense to combine with a Test::More test.

So I'd say what you should do is document these memes in your POD rather than writing any code.

Makeshifts last the longest.

In reply to Re: Test::Exception extension with (evil?) overloading by Aristotle
in thread Test::Exception extension with (evil?) overloading by adrianh

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [LanX]: 1234567890 1234567890 1234567890
    [LanX]: so inserting own whitespace helps, ie. a JS warning on submit could help preventing problems
    [LanX]:  last hour of cb doesn't break
    [LanX]: 12345678901234- 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (9)
    As of 2017-07-24 11:03 GMT
    Find Nodes?
      Voting Booth?
      I came, I saw, I ...

      Results (351 votes). Check out past polls.