Help for this page

Select Code to Download


  1. or download this
    ok ( $foo =~ /bar/, 'contains bar');
    ok ( UNIVERSAL::isa($o, 'MyClass'), 'isa MyClass' );
    ok( $foo eq 'bar', 'equals bar' );
    
  2. or download this
    like( $foo, qr/foo/, 'contains bar' );
    isa_ok( $o, 'MyClass' );
    is( $foo, 'bar', 'equals bar' );
    
  3. or download this
    is( 'apples', 'oranges', 'expecting to find some oranges' );
    
  4. or download this
    not ok 1 - expecting to find some oranges
    #     Failed test (-e at line 1)
    #          got: 'apples'
    #     expected: 'oranges'
    
  5. or download this
    not ok 1 - expecting to find some oranges