Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ikegami (Patriarch)
on Jan 05, 2007 at 14:34 UTC ( [id://593115]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Test::Simple or Test::More
    ok($var eq 'a' || $var eq 'b', "test name");
    
  2. or download this
    # Test::Simple or Test::More
    ok((map { $_ eq 'a' || $_ eq 'b' } $var), "test name");
    
  3. or download this
    # Test::More
    like($var, qr/^(?:a|b)\z/, "test name");
    

Log In?
Username:
Password:

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

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

    No recent polls found