From: Rafael Garcia-Suarez Date: Wed, 7 Jun 2006 09:13:51 +0000 (+0000) Subject: Add a regression test to ensure that charnames pragma X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eb915052db897571e1414bc47662e79909c6c291;p=p5sagit%2Fp5-mst-13.2.git Add a regression test to ensure that charnames pragma is propagated to eval("") p4raw-id: //depot/perl@28366 --- diff --git a/lib/charnames.t b/lib/charnames.t index efb6608..d013907 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -15,7 +15,7 @@ require File::Spec; $| = 1; -print "1..76\n"; +print "1..78\n"; use charnames ':full'; @@ -349,6 +349,15 @@ if (ord('A') == 65) { # as on ASCII or UTF-8 machines print "ok 76\n"; } +# Verify that charnames propagate to eval("") +my $evaltry = eval q[ "Eval: \N{LEFT-POINTING DOUBLE ANGLE QUOTATION MARK}" ]; +if ($@) { + print "# $@not ok 77\nnot ok 78\n"; +} else { + print "ok 77\n"; + print "not " unless $evaltry eq "Eval: \N{LEFT-POINTING DOUBLE ANGLE QUOTATION MARK}"; + print "ok 78\n"; +} __END__ # unsupported pragma