X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsmoke.t;h=87508ed6e6f3fd17a46fd6f49d799e277ba6acbc;hb=0290d419196fb9808385e38704561b93ab714009;hp=5c13ecc17c6411d3f2e2e45a6e5b16d95161333f;hpb=16c238946dc5ef5a2ddc13ebc0b57f3a0629f03e;p=p5sagit%2FSub-Name.git diff --git a/t/smoke.t b/t/smoke.t index 5c13ecc..87508ed 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,11 @@ 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