blob: 68ccd06120230787f0619e46f8ee23f11ca7b0b8 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 858daa5047b00e7d5aa795302a9fad5504c8f0b9 Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com>
3Date: Thu, 17 Nov 2022 16:33:20 -0800
4Subject: [PATCH] Skip TODO test cases that fail
5
6TODO cases report as "not ok" with ptest-runner
7
8Upstream-Status: Inappropriate [ptest-runner specific]
9
10Signed-off-by: Tim Orling <tim.orling@konsulko.com>
11
12---
13 t/escape-char.t | 20 ++++++++++----------
14 t/iri.t | 18 +++++++++---------
15 t/mailto.t | 12 ++++++------
16 3 files changed, 25 insertions(+), 25 deletions(-)
17
18diff --git a/t/escape-char.t b/t/escape-char.t
19index c6ce79c..5e62ad5 100644
20--- a/t/escape-char.t
21+++ b/t/escape-char.t
22@@ -6,16 +6,16 @@ use warnings;
23 use Test::More;
24 use URI ();
25
26-TODO: {
27- my $str = "http://foo/\xE9";
28- utf8::upgrade($str);
29- my $uri = URI->new($str);
30-
31- local $TODO = 'URI::Escape::escape_char misunderstands utf8';
32-
33- # http://foo/%C3%A9
34- is("$uri", 'http://foo/%E9', 'correctly created a URI from a utf8-upgraded string');
35-}
36+#TODO: {
37+# my $str = "http://foo/\xE9";
38+# utf8::upgrade($str);
39+# my $uri = URI->new($str);
40+#
41+# local $TODO = 'URI::Escape::escape_char misunderstands utf8';
42+#
43+# # http://foo/%C3%A9
44+# is("$uri", 'http://foo/%E9', 'correctly created a URI from a utf8-upgraded string');
45+#}
46
47 {
48 my $str = "http://foo/\xE9";
49diff --git a/t/iri.t b/t/iri.t
50index 2eb64b2..9c663c9 100644
51--- a/t/iri.t
52+++ b/t/iri.t
53@@ -6,7 +6,7 @@ use Test::More;
54 use Config qw( %Config );
55
56 if (defined $Config{useperlio}) {
57- plan tests=>26;
58+ plan tests=>24;
59 } else {
60 plan skip_all=>'this perl doesn\'t support PerlIO layers';
61 }
62@@ -60,17 +60,17 @@ is $u->as_iri, "http://➡.ws/";
63 # draft-duerst-iri-bis.txt examples (section 3.7.1):
64 is(URI->new("http://www.example.org/D%C3%BCrst")->as_iri, "http://www.example.org/D\xFCrst");
65 is(URI->new("http://www.example.org/D%FCrst")->as_iri, "http://www.example.org/D%FCrst");
66-TODO: {
67- local $TODO = "some chars (like U+202E, RIGHT-TO-LEFT OVERRIDE) need to stay escaped";
68-is(URI->new("http://xn--99zt52a.example.org/%e2%80%ae")->as_iri, "http://\x{7D0D}\x{8C46}.example.org/%e2%80%ae");
69-}
70+#TODO: {
71+# local $TODO = "some chars (like U+202E, RIGHT-TO-LEFT OVERRIDE) need to stay escaped";
72+#is(URI->new("http://xn--99zt52a.example.org/%e2%80%ae")->as_iri, "http://\x{7D0D}\x{8C46}.example.org/%e2%80%ae");
73+#}
74
75 # try some URLs that can't be IDNA encoded (fallback to encoded UTF8 bytes)
76 $u = URI->new("http://" . ("ü" x 128));
77 is $u, "http://" . ("%C3%BC" x 128);
78 is $u->host, ("\xC3\xBC" x 128);
79-TODO: {
80- local $TODO = "should ihost decode UTF8 bytes?";
81- is $u->ihost, ("ü" x 128);
82-}
83+#TODO: {
84+# local $TODO = "should ihost decode UTF8 bytes?";
85+# is $u->ihost, ("ü" x 128);
86+#}
87 is $u->as_iri, "http://" . ("ü" x 128);
88diff --git a/t/mailto.t b/t/mailto.t
89index 79e9a13..c68cfb2 100644
90--- a/t/mailto.t
91+++ b/t/mailto.t
92@@ -48,12 +48,12 @@ $u = URI->new('mailto:user+detail@example.com');
93 is $u->to, 'user+detail@example.com', 'subaddress with `+` parsed correctly';
94 is $u, 'mailto:user+detail@example.com', '... and stringification works';
95
96-TODO: {
97- local $TODO = "We can't handle quoted local parts without properly parsing the email addresses";
98- $u = URI->new('mailto:"foo bar+baz"@example.com');
99- is $u->to, '"foo bar+baz"@example.com', 'address with quoted local part containing spaces is parsed correctly';
100- is $u, 'mailto:%22foo%20bar+baz%22@example.com', '... and stringification works';
101-}
102+#TODO: {
103+# local $TODO = "We can't handle quoted local parts without properly parsing the email addresses";
104+# $u = URI->new('mailto:"foo bar+baz"@example.com');
105+# is $u->to, '"foo bar+baz"@example.com', 'address with quoted local part containing spaces is parsed correctly';
106+# is $u, 'mailto:%22foo%20bar+baz%22@example.com', '... and stringification works';
107+#}
108
109 # RFC 5321 (4.1.3) - Address Literals
110