summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2012-02-25 13:40:11 +0000
committerKarl Williamson <public@khwilliamson.com>2012-03-04 12:23:11 -0700
commit920e47bbc431efd5c1ca9d8b85fb88c172326b14 (patch)
treed00b4fc8c6f9c753704ae62b0bd3aff30ce648ab /t
parent80acc8be4f101a4e45b660efa91659da2c6b0a50 (diff)
downloadperl-920e47bbc431efd5c1ca9d8b85fb88c172326b14.tar.gz
TODO Failing tests for warnings in utf8 subcategories
Diffstat (limited to 't')
-rw-r--r--t/lib/warnings/utf833
1 files changed, 33 insertions, 0 deletions
diff --git a/t/lib/warnings/utf8 b/t/lib/warnings/utf8
index 8fb96c9193..7d3886c388 100644
--- a/t/lib/warnings/utf8
+++ b/t/lib/warnings/utf8
@@ -349,6 +349,39 @@ EXPECT
Unicode surrogate U+D800 is illegal in UTF-8 at - line 6.
Unicode non-character U+FFFF is illegal for open interchange at - line 7.
########
+# TODO
+# NAME C<use warnings "nonchar"> works in isolation
+require "../test.pl";
+use warnings 'nonchar';
+my $file = tempfile();
+open(my $fh, "+>:utf8", $file);
+print $fh "\x{FFFF}", "\n";
+close $fh;
+EXPECT
+Unicode non-character U+FFFF is illegal for open interchange at - line 5.
+########
+# TODO
+# NAME C<use warnings "surrogate"> works in isolation
+require "../test.pl";
+use warnings 'surrogate';
+my $file = tempfile();
+open(my $fh, "+>:utf8", $file);
+print $fh "\x{D800}", "\n";
+close $fh;
+EXPECT
+Unicode surrogate U+D800 is illegal in UTF-8 at - line 5.
+########
+# TODO
+# NAME C<use warnings "non_unicode"> works in isolation
+require "../test.pl";
+use warnings 'non_unicode';
+my $file = tempfile();
+open(my $fh, "+>:utf8", $file);
+print $fh "\x{110000}", "\n";
+close $fh;
+EXPECT
+Code point 0x110000 is not Unicode, may not be portable at - line 5.
+########
require "../test.pl";
no warnings 'utf8';
my $file = tempfile();