Skip to content

Commit bb057f7

Browse files
committed
uni/method.t: White-space only
Some test descriptions were split over input lines, leading to ragged output (suppressed under harness testing).
1 parent 8c05864 commit bb057f7

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

t/uni/method.t

+29-14
Original file line numberDiff line numberDiff line change
@@ -118,33 +118,48 @@ utf8::downgrade($new_latin);
118118
my $newoct = $new_utf8;
119119
utf8::encode($newoct);
120120
121-
like( Føø::Bær->$new_ascii, qr/Føø::Bær=HASH/u, "Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method, through a UTF-8 package." );
122-
like( Føø::Bær->$new_latin, qr/Føø::Bær=HASH/u, "Can access \$new_latin, [$new_latin], stored in a scalar, as a method, through a UTF-8 package." );
123-
like( Føø::Bær->$new_utf8, qr/Føø::Bær=HASH/u, "Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method, through a UTF-8 package." );
121+
like( Føø::Bær->$new_ascii, qr/Føø::Bær=HASH/u,
122+
"Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method,"
123+
. " through a UTF-8 package." );
124+
like( Føø::Bær->$new_latin, qr/Føø::Bær=HASH/u,
125+
"Can access \$new_latin, [$new_latin], stored in a scalar, as a method,"
126+
. " through a UTF-8 package." );
127+
like( Føø::Bær->$new_utf8, qr/Føø::Bær=HASH/u,
128+
"Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method,"
129+
. " through a UTF-8 package." );
124130
{
125131
local $@;
126132
eval { Føø::Bær->$newoct };
127133
like($@, qr/Can't locate object method "[^"]+" via package "Føø::Bær"/u,
128-
"Can't access [$newoct], stored in a scalar, as a method through a UTF-8 package." );
134+
"Can't access [$newoct], stored in a scalar, as a method through a"
135+
. " UTF-8 package." );
129136
}
130137
131-
132-
like( nèw Føø::Bær, qr/Føø::Bær=HASH/u, "Can access [nèw] as a method through a UTF-8 indirect object package.");
138+
like( nèw Føø::Bær, qr/Føø::Bær=HASH/u,
139+
"Can access [nèw] as a method through a UTF-8 indirect object package.");
133140
134141
my $pkg_latin_1 = 'Føø::Bær';
135142
136-
like( $pkg_latin_1->new, qr/Føø::Bær=HASH/u, 'Can access new as a method when the UTF-8 package name is in a scalar.');
137-
like( $pkg_latin_1->nèw, qr/Føø::Bær=HASH/u, 'Can access nèw as a method when the UTF-8 package name is in a scalar.');
138-
139-
like( $pkg_latin_1->$new_ascii, qr/Føø::Bær=HASH/u, "Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar.");
140-
like( $pkg_latin_1->$new_latin, qr/Føø::Bær=HASH/u, "Can access \$new_latin, [$new_latin], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar.");
141-
like( $pkg_latin_1->$new_utf8, qr/Føø::Bær=HASH/u, "Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar." );
143+
like( $pkg_latin_1->new, qr/Føø::Bær=HASH/u,
144+
'Can access new as a method when the UTF-8 package name is in a scalar.');
145+
like( $pkg_latin_1->nèw, qr/Føø::Bær=HASH/u,
146+
'Can access nèw as a method when the UTF-8 package name is in a scalar.');
147+
148+
like( $pkg_latin_1->$new_ascii, qr/Føø::Bær=HASH/u,
149+
"Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method,"
150+
. " when the UTF-8 package name is also in a scalar.");
151+
like( $pkg_latin_1->$new_latin, qr/Føø::Bær=HASH/u,
152+
"Can access \$new_latin, [$new_latin], stored in a scalar, as a method,"
153+
. " when the UTF-8 package name is also in a scalar.");
154+
like( $pkg_latin_1->$new_utf8, qr/Føø::Bær=HASH/u,
155+
"Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method,"
156+
. " when the UTF-8 package name is also in a scalar." );
142157
{
143158
local $@;
144-
145159
eval { $pkg_latin_1->$newoct };
146160
like($@, qr/Can't locate object method "[^"]*" via package "Føø::Bær"/u,
147-
"Can't access [$newoct], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar.");
161+
"Can't access [$newoct], stored in a scalar, as a method, when the"
162+
. " UTF-8 package name is also in a scalar.");
148163
}
149164
150165
ok !!Føø::Bær->can($new_ascii), "->can works for [$new_ascii]";

0 commit comments

Comments
 (0)