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");