From: matthewt Date: Fri, 9 Nov 2007 07:36:47 +0000 (+0000) Subject: make test less noisy X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4929e464836f39ced949d10d545795c3c6493c75;p=p5sagit%2FDevel-Declare.git make test less noisy git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-Declare@3868 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/t/sugar.t b/t/sugar.t index 8b51917..dffca84 100644 --- a/t/sugar.t +++ b/t/sugar.t @@ -6,15 +6,15 @@ BEGIN { 'DeclareTest', 'method', DECLARE_PACKAGE | DECLARE_PROTO, sub { my ($name, $proto) = @_; -no warnings 'uninitialized'; -warn "NP: ".join(', ', @_)."\n"; +#no warnings 'uninitialized'; +#warn "NP: ".join(', ', @_)."\n"; return 'my $self = shift;' unless defined $proto && $proto ne '@_'; return 'my ($self'.(length $proto ? ", ${proto}" : "").') = @_;'; }, sub { my ($name, $proto, $sub, @rest) = @_; -no warnings 'uninitialized'; -warn "NPS: ".join(', ', @_)."\n"; +#no warnings 'uninitialized'; +#warn "NPS: ".join(', ', @_)."\n"; if (defined $name && length $name) { unless ($name =~ /::/) { $name = "DeclareTest::${name}"; @@ -42,7 +42,7 @@ my ($test_method1, $test_method2, @test_list); return (ref $self).': Foo: '.$foo; }; - method upgrade () { + method upgrade(){ # no spaces to make case pathological bless($self, 'DeclareTest2'); }; @@ -82,4 +82,4 @@ is($o->$test_method1('no', 'yes'), 'value, yes', 'anon method with @_ ok'); is($o->$test_method2('this'), 'DeclareTest2, this', 'anon method with proto ok'); -warn map { $_->() } @test_list; +#warn map { $_->() } @test_list;