This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
lexsub.t: Fix some tests
authorFather Chrysostomos <sprout@cpan.org>
Sun, 8 Jul 2012 21:28:22 +0000 (14:28 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 05:45:00 +0000 (22:45 -0700)
I got this working a few commits ago, but the tests mentioned the
wrong sub name.

t/cmd/lexsub.t

index 404f7dd..36689e7 100644 (file)
@@ -160,16 +160,14 @@ sub sc { 43 }
 {
   state sub sc;
   eval{sc};
-::on;
-  like $@, qr/^Undefined subroutine &sb called at /,
+  like $@, qr/^Undefined subroutine &sc called at /,
      'state sub foo; makes no lex alias for existing sub';
   eval{&sc};
-  like $@, qr/^Undefined subroutine &sb called at /,
+  like $@, qr/^Undefined subroutine &sc called at /,
      'state sub foo; makes no lex alias for existing sub (amper)';
   eval{do sc()};
-  like $@, qr/^Undefined subroutine &sb called at /,
+  like $@, qr/^Undefined subroutine &sc called at /,
      'state sub foo; makes no lex alias for existing sub (do)';
-::off;
 }
 package main;
 {