Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests of Test.pm to use the right order of arguments.
Add a test for the wrong order.
  • Loading branch information
Tadeusz Sośnierz committed Mar 5, 2011
1 parent 3abc9c8 commit 12dfa0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/01-sanity/99-test-basic.t
Expand Up @@ -31,7 +31,7 @@ ok 1, 'passing test (not todo)';

skip( 'skip with reason' );
skip;
skip( 2, 'skip with count and reason' );
skip( 'skip with count and reason', 2 );

# skip_rest();

Expand All @@ -46,6 +46,9 @@ flunk( 'flunk' );
isa_ok( $x, Int );
}

dies_ok { skip( 2, 'reason' ) },
'skip() dies when given the arguments in the wrong order';

# dies_ok { die }, 'dies_ok';
# dies_ok { die };
#
Expand Down

0 comments on commit 12dfa0d

Please sign in to comment.