X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsmoke.t;h=27d843cd5b099fba9ccf19d81466df02f663b7e6;hb=bbd0130659727a45e7f214cb8086cddbaecd5dec;hp=5c13ecc17c6411d3f2e2e45a6e5b16d95161333f;hpb=d73d8321f16899e7adbd8faf9d9c6db8b84fca12;p=p5sagit%2FSub-Name.git diff --git a/t/smoke.t b/t/smoke.t index 5c13ecc..27d843c 100644 --- a/t/smoke.t +++ b/t/smoke.t @@ -1,6 +1,6 @@ #!/usr/bin/perl -BEGIN { print "1..3\n"; } +BEGIN { print "1..5\n"; } use Sub::Name; @@ -19,6 +19,12 @@ print $x->() eq "Blork:: Bar!" ? "ok 2\n" : "not ok 2\n"; subname "Foo::Bar::Baz", $x; print $x->() eq "Foo::Bar::Baz" ? "ok 3\n" : "not ok 3\n"; +subname "subname (dynamic $_)", \&subname for 1 .. 3; + +for (4 .. 5) { + subname "Dynamic $_", $x; + print $x->() eq "Blork::Dynamic $_" ? "ok $_\n" : "not ok $_\n"; +} # $Id: smoke.t,v 1.4 2004/08/18 12:03:42 xmath Exp $ # vim: ft=perl