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
--- /dev/null
+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;