add warnings tests, for authors only
[p5sagit/Sub-Name.git] / t / quotes-bug.t
CommitLineData
4cd62f77 1use strict;
2use warnings;
3
356a8ce3 4use Test::More tests => 1;
a31b59ba 5use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
4cd62f77 6use Sub::Name;
7
8my $sub = sub { (caller(0))[3] };
9subname "foo::quz'bar::baz", $sub;
10
11# in 0.16, this was foo::quz::ba::baz
12is(
13 $sub->(),
14 "foo::quz::bar::baz",
15 'correctly parsed single quote from name where the last separator is ::',
16);