Skip to content

Commit c12a6ad

Browse files
test "our" declaration inside braces
1 parent 1203d67 commit c12a6ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/metadata.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ our $VERSION = "0.0.9_1";
232232
'1.12' => <<'---', # our + crazy string and substitution code
233233
package Simple;
234234
our $VERSION = '1.12.B55J2qn'; our $WTF = $VERSION; $WTF =~ s/^\d+\.\d+\.//; # attempts to rationalize $WTF go here.
235+
---
236+
'1.12' => <<'---', # our in braces, as in Dist::Zilla::Plugin::PkgVersion with use_our = 1
237+
package Simple;
238+
{ our $VERSION = '1.12'; }
235239
---
236240
);
237241

0 commit comments

Comments
 (0)