Skip to content

Commit 9f47446

Browse files
committed
s/lives_ok/lives-ok/g
1 parent e816632 commit 9f47446

File tree

228 files changed

+813
-813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+813
-813
lines changed

S01-perl-5-integration/array.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ is($p5array.my_exists(10), +(@array[10]:exists), 'nonexists fail');
6464
is($p5array.fetch(3)+0, @array[3], 'fetch');
6565

6666
my $match = 0;
67-
lives_ok {
67+
lives-ok {
6868
$match = ?($retarray.[3] ~~ @array[3]);
6969
}, 'can retro fetch';
7070
ok $match, 'retro fetch';

S01-perl-5-integration/class.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ unless (try { EVAL("1", :lang<perl5>) }) {
1010
}
1111

1212
{
13-
lives_ok {
13+
lives-ok {
1414
EVAL q|
1515
use Digest::MD5:from<Perl5>;
1616
my $d = Digest::MD5.new;

S01-perl-5-integration/exception_handling.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ unless (try { EVAL("1", :lang<perl5>) }) {
1313
use Carp:from<Perl5>;
1414

1515
my $err;
16-
lives_ok({ try { Carp.croak() }; $err = $! }, "Perl 5 exception (die) caught");
16+
lives-ok({ try { Carp.croak() }; $err = $! }, "Perl 5 exception (die) caught");
1717
like($err.Str, rx:P5/Carp/, "Exception is propagated to Perl 6 land");
1818

1919
EVAL(q[
@@ -33,7 +33,7 @@ sub test { "1" }
3333

3434
my $foo = EVAL("Foo->new",:lang<perl5>);
3535
try { $foo.error };
36-
lives_ok( {
36+
lives-ok( {
3737
my $err = $!;
3838
$err.payload.test;
3939
}, "Accessing Perl5 method doesn't die");

S01-perl-5-integration/hash.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ my $rethash = $p5hash.hash;
5959
my @keys = %hash.keys.sort;
6060
my @p5keys;
6161
try {
62-
@p5keys = $p5hash.my_keys; # this doesn't even pass lives_ok ??
62+
@p5keys = $p5hash.my_keys; # this doesn't even pass lives-ok ??
6363
@p5keys .= sort;
6464
};
6565

S02-lexical-conventions/comments.t

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ plan 51;
169169
# delimiter quoting>
170170
{
171171
my $a;
172-
lives_ok { EVAL '$a = q{ 32 }' }, 'sanity check';
172+
lives-ok { EVAL '$a = q{ 32 }' }, 'sanity check';
173173
is $a, ' 32 ', 'sanity check';
174174
}
175175

@@ -183,12 +183,12 @@ plan 51;
183183
#?niecza todo
184184
{
185185
# RT #70752
186-
lives_ok { EVAL "#=======\n#=======\nuse v6;" },
186+
lives-ok { EVAL "#=======\n#=======\nuse v6;" },
187187
"pragma use after single line comments";
188188
}
189189

190190
# L<S02/Multiline Comments/POD sections may be>
191-
lives_ok { EVAL q{{
191+
lives-ok { EVAL q{{
192192
193193
my $outerVal = EVAL(
194194
q{my $var = 1;
@@ -208,7 +208,7 @@ is $outerVal, "bar", '=begin comment without =cut parses to whitespace in code';
208208

209209

210210
# L<S02/Multiline Comments/"single paragraph comments">
211-
lives_ok { EVAL q{{
211+
lives-ok { EVAL q{{
212212
213213
my $outerVal = EVAL(
214214
q{10 +
@@ -222,7 +222,7 @@ is $outerVal, 11, 'Single paragraph Pod parses to whitespace in code';
222222
}} }, 'Single paragraph Pod eval throws no error';
223223

224224
#?niecza todo
225-
lives_ok { EVAL q{{
225+
lives-ok { EVAL q{{
226226
227227
my $outerVal = EVAL(
228228
q{20 +

S02-lexical-conventions/minimal-whitespace.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ throws-like { EVAL '$o. whatever(5)' },
3535
X::Obsolete,
3636
'whitespace is not allowed after . before method';
3737

38-
lives_ok { EVAL 'my @rt80330; [+] @rt80330' },
38+
lives-ok { EVAL 'my @rt80330; [+] @rt80330' },
3939
'a [+] with whitespace works';
4040
throws-like { EVAL 'my @rt80330; [+]@rt80330' },
4141
X::Syntax::Confused,

S02-lexical-conventions/one-pass-parsing.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ plan 5;
55

66
# L<S02/"One-pass parsing">
77

8-
lives_ok { EVAL 'regex { <[ } > ]> }; 1' },
8+
lives-ok { EVAL 'regex { <[ } > ]> }; 1' },
99
"can parse non-backslashed curly and right bracket in cclass";
1010

1111
# RT #74988
1212
{
13-
lives_ok { EVAL 'sub if() { "#foo" }; say if();' },
13+
lives-ok { EVAL 'sub if() { "#foo" }; say if();' },
1414
"Can call sub if()";
1515
dies-ok { EVAL 'sub if() { "#foo" }; say if ;' },
1616
"Calling sub if without parens parsefails due to no-arg say";
17-
lives_ok { EVAL 'sub if() { "#foo" }; say if;' },
17+
lives-ok { EVAL 'sub if() { "#foo" }; say if;' },
1818
"Calling sub if okay parens as long as not followed by whitespace";
1919
dies-ok { EVAL 'say "OK" if+1' },
2020
"Using keyword if fails if not followed by whitespace";

S02-lexical-conventions/unicode.t

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,56 +8,56 @@ plan 44;
88

99
# Unicode variables
1010
# english ;-)
11-
lives_ok {my $foo; sub foo {}; 1}, "ascii declaration"; #OK not used
11+
lives-ok {my $foo; sub foo {}; 1}, "ascii declaration"; #OK not used
1212
is (do {my $bar = 2; sub id ($x) { $x }; id($bar)}), 2, "evaluation";
1313

1414
# umlauts
15-
lives_ok {my $übervar; sub fü {}; 1}, "umlauts declaration"; #OK not used
15+
lives-ok {my $übervar; sub fü {}; 1}, "umlauts declaration"; #OK not used
1616
is (do {my $schloß = 2; sub öok ($x) { $x }; öok($schloß)}), 2, "evaluation";
1717

1818
# monty python
19-
lives_ok {my $møøse; sub bïte {}; 1}, "a møøse once bit my sister"; #OK not used
19+
lives-ok {my $møøse; sub bïte {}; 1}, "a møøse once bit my sister"; #OK not used
2020
is (do {my $møøse = 2; sub såck ($x) { $x }; såck($møøse)}), 2,
2121
"møøse bites kan be preti nasti";
2222
2323
# french
24-
lives_ok {my $une_variable_française; sub blâ {}; 1}, "french declaration"; #OK not used
24+
lives-ok {my $une_variable_française; sub blâ {}; 1}, "french declaration"; #OK not used
2525
is (do {my $frénch = 2; sub bléch ($x) { $x }; bléch($frénch)}), 2, "evaluation";
2626
2727
# Some Chinese Characters
28-
lives_ok {my $; 1}, "chinese declaration"; #OK not used
28+
lives-ok {my $; 1}, "chinese declaration"; #OK not used
2929
is (do {my $ = 2; sub 恆等($x) {$x}; 恆等($)}), 2, "evaluation";
3030
3131
# Tibetan Characters
32-
lives_ok {my $; 1}, "tibetan declaration"; #OK not used
32+
lives-ok {my $; 1}, "tibetan declaration"; #OK not used
3333
is (do {my $ = 2; $}), 2, "evaluation";
3434
3535
# Japanese
36-
lives_ok {my $; 1}, "japanese declaration"; #OK not used
36+
lives-ok {my $; 1}, "japanese declaration"; #OK not used
3737
is (do {my $ = 2; $}), 2, "evaluation";
3838
3939
# arabic
40-
lives_ok {my $الصفحة ; 1}, "arabic declaration"; #OK not used
40+
lives-ok {my $الصفحة ; 1}, "arabic declaration"; #OK not used
4141
is (do {my $الصفحة = 2; $الصفحة}), 2, "evaluation";
4242
4343
# hebrew
44-
lives_ok {my $פוו; sub לה {}; 1}, "hebrew declaration"; #OK not used
44+
lives-ok {my $פוו; sub לה {}; 1}, "hebrew declaration"; #OK not used
4545
is (do {my $באר = 2; sub זהות ($x) { $x }; זהות($באר)}), 2, "evaluation";
4646
4747
# magyar
48-
lives_ok {my $aáeéiíoóöőuúüű ; 1}, "magyar declaration"; #OK not used
48+
lives-ok {my $aáeéiíoóöőuúüű ; 1}, "magyar declaration"; #OK not used
4949
is (do {my $áéóőöúűüí = 42; sub űáéóőöúüí ($óőöú) { $óőöú }; űáéóőöúüí($áéóőöúűüí)}),
5050
42, "evaluation";
5151
5252
# russian
53-
lives_ok {my $один; sub раз {}; 1}, "russian declaration"; #OK not used
53+
lives-ok {my $один; sub раз {}; 1}, "russian declaration"; #OK not used
5454
is
5555
(do {my $два = 2; sub идентичный ($x) { $x }; идентичный($два)}),
5656
2,
5757
"evaluation";
5858
5959
#?rakudo 2 skip 'VOWEL SIGNs in identifiers; RT #122340'
60-
lives_ok { my $पहला = 1; }, "hindi declaration";
60+
lives-ok { my $पहला = 1; }, "hindi declaration";
6161
is((do { my $दूसरा = 2; sub टोटल ($x) { $x + 2 }; टोटल($दूसरा) }), 4, "evaluation");
6262
6363
# Unicode subs
@@ -109,35 +109,35 @@ is((do { my $दूसरा = 2; sub टोटल ($x) { $x + 2 }; टोटल
109109
# L<S02/Unicode Semantics/Perl can count Unicode line and paragraph separators>
110110
# see also RT #122341
111111
112-
lives_ok { EVAL "\{ 1 \} \x0a \{ 1 \}" },
112+
lives-ok { EVAL "\{ 1 \} \x0a \{ 1 \}" },
113113
"Unicode 000A (LINE FEED (LF)) can terminate lines";
114-
lives_ok { EVAL "\{ 1 \} \x0b \{ 1 \}" },
114+
lives-ok { EVAL "\{ 1 \} \x0b \{ 1 \}" },
115115
"Unicode 000B (LINE TABULATION) can terminate lines";
116-
lives_ok { EVAL "\{ 1 \} \x0c \{ 1 \}" },
116+
lives-ok { EVAL "\{ 1 \} \x0c \{ 1 \}" },
117117
"Unicode 000C (FORM FEED (FF)) can terminate lines";
118-
lives_ok { EVAL "\{ 1 \} \x0d \{ 1 \}" },
118+
lives-ok { EVAL "\{ 1 \} \x0d \{ 1 \}" },
119119
"Unicode 000D (CARRIAGE RETURN (CR)) can terminate lines";
120-
lives_ok { EVAL "\{ 1 \} \x85 \{ 1 \}" },
120+
lives-ok { EVAL "\{ 1 \} \x85 \{ 1 \}" },
121121
"Unicode 0085 (NEXT LINE (NEL)) can terminate lines";
122-
lives_ok { EVAL "\{ 1 \} \x2028 \{ 1 \}" },
122+
lives-ok { EVAL "\{ 1 \} \x2028 \{ 1 \}" },
123123
"Unicode 2028 (LINE SEPARATOR) can terminate lines";
124-
lives_ok { EVAL "\{ 1 \} \x2029 \{ 1 \}" },
124+
lives-ok { EVAL "\{ 1 \} \x2029 \{ 1 \}" },
125125
"Unicode 2029 (PARAGRAPH SEPARATOR) can terminate lines";
126126
127127
# L<S02/Bracketing Characters/If a character is already used>
128128
129-
lives_ok { EVAL "q\x298d test \x298e" },
129+
lives-ok { EVAL "q\x298d test \x298e" },
130130
"Unicode open-298d maps to close-298e";
131-
lives_ok { EVAL "q\x301d test \x301e" },
131+
lives-ok { EVAL "q\x301d test \x301e" },
132132
"Unicode open-301d maps to close-301e";
133133
throws-like { EVAL "q\x301d test \x301f" },
134134
Exception,
135135
"Unicode open-301d does not map to close-301f";
136-
lives_ok { EVAL "q\x2018 test \x2019" },
136+
lives-ok { EVAL "q\x2018 test \x2019" },
137137
"Unicode open-2018 maps to to close-2019";
138-
lives_ok { EVAL "q\x201a test \x2019" },
138+
lives-ok { EVAL "q\x201a test \x2019" },
139139
"Unicode open-201a maps to to close-2019";
140-
lives_ok { EVAL "q\x2018 \x201a test \x2019" },
140+
lives-ok { EVAL "q\x2018 \x201a test \x2019" },
141141
"Alternative open-brakets treat their other alternates as non-special";
142142
143143
# vim: ft=perl6 fileencoding=utf-8

S02-literals/autoref.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,11 @@ plan 59;
290290

291291
# RT #76462
292292
{
293-
lives_ok { my $a = (\my %h)<a> },
293+
lives-ok { my $a = (\my %h)<a> },
294294
'no Null PMC access when hash indexing a hash ref';
295295
my %h = ( 'a' => 1, 'b' => 2 );
296296
my $h_ref = \%h;
297-
lives_ok { my $b = $h_ref.{"a"} },
297+
lives-ok { my $b = $h_ref.{"a"} },
298298
'no Null PMC access when trying to hash index a Capture';
299299
}
300300

S02-literals/fmt-interpolation.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ is(
2424
'ord of $x is 65',
2525
'normal scalar variable builtin call as a method'
2626
);
27-
lives_ok(sub { $y = "ord of \$x is $x.ord.fmt('%d')" },
27+
lives-ok(sub { $y = "ord of \$x is $x.ord.fmt('%d')" },
2828
'fmt and scalar interpolation live');
2929
is($y, 'ord of $x is 65', 'fmt and scalar interpolation behave well');
3030

@@ -34,7 +34,7 @@ is(
3434
'ord of $x is 65',
3535
'normal scalar variable builtin call as a method'
3636
);
37-
lives_ok(sub { $y = "hex-formatted ord of \$x is {$x.ord().fmt('%x')}" },
37+
lives-ok(sub { $y = "hex-formatted ord of \$x is {$x.ord().fmt('%x')}" },
3838
'fmt and code interpolation live');
3939
is(
4040
$y,

0 commit comments

Comments
 (0)