From: Karen Etheridge Date: Mon, 27 Jun 2016 22:43:48 +0000 (-0700) Subject: test and Changes entry for quotes fix X-Git-Tag: v0.17~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4cd62f77256e960b7326e18c45bce10c551e5953;p=p5sagit%2FSub-Name.git test and Changes entry for quotes fix --- diff --git a/Changes b/Changes index 8be28d9..aed75fa 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Sub-Name {{$NEXT}} + - fixed parsing error where the name contains a single colon but the last + separator is :: (Leon Timmermans) 0.16 2016-06-21 03:41:40Z (TRIAL RELEASE) - support binary and unicode symbol names (Leon Timmermans, Aristotle diff --git a/t/quotes-bug.t b/t/quotes-bug.t new file mode 100644 index 0000000..addb4b7 --- /dev/null +++ b/t/quotes-bug.t @@ -0,0 +1,17 @@ +use strict; +use warnings; + +use Test::More 0.88; +use Sub::Name; + +my $sub = sub { (caller(0))[3] }; +subname "foo::quz'bar::baz", $sub; + +# in 0.16, this was foo::quz::ba::baz +is( + $sub->(), + "foo::quz::bar::baz", + 'correctly parsed single quote from name where the last separator is ::', +); + +done_testing;