From: Matt S Trout Date: Fri, 9 Nov 2007 07:36:47 +0000 (+0000) Subject: make test less noisy X-Git-Tag: 0.005000~117 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8eb4a3c5baa0c49f8bda4ef7b53cf5d16bc49b6d;p=p5sagit%2FDevel-Declare.git make test less noisy --- 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;