[Bast-commits] r3868 - trunk/Devel-Declare/t

matthewt at dev.catalyst.perl.org matthewt at dev.catalyst.perl.org
Fri Nov 9 07:36:47 GMT 2007


Author: matthewt
Date: 2007-11-09 07:36:47 +0000 (Fri, 09 Nov 2007)
New Revision: 3868

Modified:
   trunk/Devel-Declare/t/sugar.t
Log:
make test less noisy

Modified: trunk/Devel-Declare/t/sugar.t
===================================================================
--- trunk/Devel-Declare/t/sugar.t	2007-11-09 07:22:28 UTC (rev 3867)
+++ trunk/Devel-Declare/t/sugar.t	2007-11-09 07:36:47 UTC (rev 3868)
@@ -6,15 +6,15 @@
     '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 @@
     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_method2('this'), 'DeclareTest2, this', 'anon method with proto ok');
 
-warn map { $_->() } @test_list;
+#warn map { $_->() } @test_list;




More information about the Bast-commits mailing list