Skip to content

Commit

Permalink
No need to use constant.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Sep 30, 2022
1 parent cc07737 commit 609d97f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/gh-8.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ use Test::More tests => 5;
BEGIN {
package Local::Exporter;
use Exporter::Shiny;
use constant { map { $_ => 1 } 'chocolate', 'vanilla' };
sub chocolate { 1 }
sub vanilla { 2 }
our %EXPORT_TAGS = ( want => [ qw( chocolate vanilla ) ] );
our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
};
Expand Down

0 comments on commit 609d97f

Please sign in to comment.