Change 34648 by [EMAIL PROTECTED] on 2008/10/29 22:14:33

        Subject: Fwd: CPAN Upload: S/SA/SAPER/constant-1.17.tar.gz
        From: Sébastien Aperghis-Tramoni <[EMAIL PROTECTED]>
        Message-Id: <[EMAIL PROTECTED]>
        Date: Wed, 29 Oct 2008 22:58:52 +0100

Affected files ...

... //depot/perl/lib/constant.pm#32 edit
... //depot/perl/lib/constant.t#12 edit

Differences ...

==== //depot/perl/lib/constant.pm#32 (text) ====
Index: perl/lib/constant.pm
--- perl/lib/constant.pm#31~34385~      2008-09-21 07:45:10.000000000 -0700
+++ perl/lib/constant.pm        2008-10-29 15:14:33.000000000 -0700
@@ -4,7 +4,7 @@
 use warnings::register;
 
 use vars qw($VERSION %declared);
-$VERSION = '1.16';
+$VERSION = '1.17';
 
 #=======================================================================
 

==== //depot/perl/lib/constant.t#12 (text) ====
Index: perl/lib/constant.t
--- perl/lib/constant.t#11~32800~       2008-01-01 15:46:55.000000000 -0800
+++ perl/lib/constant.t 2008-10-29 15:14:33.000000000 -0700
@@ -12,11 +12,11 @@
 BEGIN {                                # ...and save 'em for later
     $SIG{'__WARN__'} = sub { push @warnings, @_ }
 }
-END { print STDERR @warnings }
+END { @warnings && print STDERR join "\n- ", "accumulated warnings:", 
@warnings }
 
 
 use strict;
-use Test::More tests => 97;
+use Test::More tests => 95;
 my $TB = Test::More->builder;
 
 BEGIN { use_ok('constant'); }
@@ -80,13 +80,6 @@
 is MESS, q('"'\\"'"\\);
 is length(MESS), 8;
 
-use constant TRAILING  => '12 cats';
-{
-    local $^W;
-    cmp_ok TRAILING, '==', 12;
-}
-is TRAILING, '12 cats';
-
 use constant LEADING   => " \t1234";
 cmp_ok LEADING, '==', 1234;
 is LEADING, " \t1234";
@@ -112,7 +105,7 @@
 # text may vary, so we can't test much better than this.
 cmp_ok length(E2BIG), '>', 6;
 
-is @warnings, 0 or diag join "\n", "unexpected warning", @warnings;
+is @warnings, 0 or diag join "\n- ", "unexpected warning:", @warnings;
 @warnings = ();                # just in case
 undef &PI;
 ok @warnings && ($warnings[0] =~ /Constant sub.* undefined/) or
@@ -122,9 +115,9 @@
 is @warnings, 0, "unexpected warning";
 
 my $curr_test = $TB->current_test;
-use constant CSCALAR   => \"ok 37\n";
-use constant CHASH     => { foo => "ok 38\n" };
-use constant CARRAY    => [ undef, "ok 39\n" ];
+use constant CSCALAR   => \"ok 35\n";
+use constant CHASH     => { foo => "ok 36\n" };
+use constant CARRAY    => [ undef, "ok 37\n" ];
 use constant CCODE     => sub { "ok $_[0]\n" };
 
 my $output = $TB->output ;
End of Patch.

Reply via email to