This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Modify a utf8.t test in anticipation of a fix for [perl #74022]
authorFather Chrysostomos <sprout@cpan.org>
Fri, 24 Sep 2010 19:28:36 +0000 (12:28 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 24 Sep 2010 19:28:36 +0000 (12:28 -0700)
In anticipation of a fix for [perl #74022], this patch corrects the
test for q·foo· in utf8.t to use ¡ instead of ·. I’ve also moved the
test outside of the eval, so it will still run (and fail) if the com-
pilation fails, instead of causing an invalid test count.

lib/utf8.t

index 0bd06f9..c13211e 100644 (file)
@@ -329,8 +329,9 @@ END
 SKIP: {
     skip("Embedded UTF-8 does not work in EBCDIC", 1) if ord("A") == 193;
     use utf8;
-    eval qq{is(q \xc3\xbc test \xc3\xbc, qq\xc2\xb7 test \xc2\xb7,
-              "utf8 quote delimiters [perl #16823]");};
+    is eval qq{q \xc3\xbc test \xc3\xbc . qq\xc2\xa1 test \xc2\xa1},
+      ' test  test ',
+      "utf8 quote delimiters [perl #16823]";
 }
 
 # Test the "internals".