From: Arthur Axel 'fREW' Schmidt Date: Sat, 20 Feb 2010 08:05:01 +0000 (-0600) Subject: add test for import() X-Git-Tag: v0.00100~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8c96d08b1ec0b00df9b4c60d2261c27b2ca3bbf;p=p5sagit%2FLog-Contextual.git add test for import() --- diff --git a/t/log.t b/t/log.t index 48e85af..db34763 100644 --- a/t/log.t +++ b/t/log.t @@ -5,8 +5,8 @@ use lib 't/lib'; use VarLogger; use Log::Contextual qw{:log with_logger set_logger}; use Test::More qw(no_plan); -my $var_logger1 = VarLogger->new; -my $var_logger2 = VarLogger->new; +my $var_logger1 = VarLogger->new; +my $var_logger2 = VarLogger->new; my $var_logger3 = VarLogger->new; WITHLOGGER: { @@ -43,3 +43,5 @@ SETWITHLOGGER: { q{set_logger's logger comes back after scoped logger} ); } + +ok(!eval { Log::Contextual->import; 1 }, 'Blank Log::Contextual import dies');