From: Vincent Pit Date: Mon, 30 Jul 2012 14:57:53 +0000 (+0200) Subject: A couple of tests about commented versions X-Git-Tag: release_1.0.10_001~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad924b838796b31d320367e90101a21d93427265;p=p5sagit%2FModule-Metadata.git A couple of tests about commented versions --- diff --git a/t/metadata.t b/t/metadata.t index 2b2d58e..df57e09 100644 --- a/t/metadata.t +++ b/t/metadata.t @@ -28,6 +28,15 @@ package Simple; our $VERSION; $VERSION = '1.23'; --- + '1.23' => <<'---', # commented & defined on same line +package Simple; +our $VERSION = '1.23'; # our $VERSION = '4.56'; +--- + '1.23' => <<'---', # commented & defined on separate lines +package Simple; +# our $VERSION = '4.56'; +our $VERSION = '1.23'; +--- '1.23' => <<'---', # use vars package Simple; use vars qw( $VERSION );