Skip to content

Commit

Permalink
add descriptions back
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Dec 7, 2009
1 parent bc70351 commit 39f836e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions t/errors.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ eval {
package Foo;
Log::Any->import(qw($foo));
};
ok( $@ =~ qr{invalid import '\$foo'} );
ok( $@ =~ qr{invalid import '\$foo'}, 'invalid import $foo' );
eval {
package Foo;
Log::Any->import(qw(log));
};
ok( $@ =~ qr{invalid import 'log'} );
ok( $@ =~ qr{invalid import 'log'}, 'invalid import log' );
6 changes: 3 additions & 3 deletions t/valid-methods.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ foreach my $log (@logs) {
ok( !$log->$method );
}
foreach my $method ( Log::Any->logging_methods() ) {
ok( $log->$method("") || 1 );
ok( $log->$method("") || 1, "$method runs" );
my $methodf = $method . "f";
ok( $log->$methodf("") || 1 );
ok( $log->$methodf("") || 1, "$methodf runs" );
}
eval { $log->bad_method() };
ok( $@ =~ qr{Can\'t locate object method "bad_method"} );
ok( $@ =~ qr{Can\'t locate object method "bad_method"}, "bad method" );
}

0 comments on commit 39f836e

Please sign in to comment.