Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: 'either or' value unit test case in Test::Simple or Test::More

by ferreira (Chaplain)
on Jan 05, 2007 at 16:43 UTC ( [id://593157]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # is_one_of($val, \@list);
    sub is_one_of {
    ...
        diag "never saw [$val] in [@$list]";
        fail($test_name);
    }
    
  2. or download this
    is_one_of($var, [ qw(a b) ]);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found