diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-04-24 03:26:57 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-04-24 03:26:57 +0000 |
commit | 5b19971882c74b097f4a052852a67ee81cb2bb5a (patch) | |
tree | 5ece4540878b66af375437bccd72a7abe93badbc /t/RT42725_deparse.t | |
download | Sub-Name-tarball-5b19971882c74b097f4a052852a67ee81cb2bb5a.tar.gz |
Sub-Name-0.14HEADSub-Name-0.14master
Diffstat (limited to 't/RT42725_deparse.t')
-rw-r--r-- | t/RT42725_deparse.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/RT42725_deparse.t b/t/RT42725_deparse.t new file mode 100644 index 0000000..a10ce82 --- /dev/null +++ b/t/RT42725_deparse.t @@ -0,0 +1,14 @@ +use strict; +use warnings; + +use Test::More tests => 2; +use Sub::Name; +use B::Deparse; + +my $source = eval { + B::Deparse->new->coderef2text(subname foo => sub{ @_ }); +}; + +ok !$@; + +like $source, qr/\@\_/; |