Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^6: Strategy for conditional logging in tests

by andreas1234567 (Vicar)
on Apr 02, 2008 at 09:29 UTC ( #677920=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    # foo.t
    use strict;
    # Note: I want a warning here:
    cmp_ok(add(1000,1000), q{==}, 2000, q{Expect 1000+1000=2000});
  2. or download this
    $ prove foo.t
    foo......1/? [WARN] 2008/04/02 11:26:41 main::add - possible
    + overflow
    All tests successful.
    Files=1, Tests=8,  1 wallclock secs ( 0.01 usr  0.00 sys +  0.08 cusr 
    + 0.01 csys =  0.10 CPU)
    Result: PASS

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2015-11-30 21:39 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (783 votes), past polls