Skip to content

Commit f7e8545

Browse files
committed
s/ucfirst/tc/ - ucfirst is going away
1 parent 89d4c66 commit f7e8545

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

S02-lexical-conventions/unicode.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ is((do { my $दूसरा = 2; sub टोटल ($x) { $x + 2 }; टोटल
8383
#?mildew skip 'placeholders are NIY'
8484
{
8585
is
86-
~(< foostraße barstraße fakestraße >.map: { ucfirst $^straßenname }),
86+
~(< foostraße barstraße fakestraße >.map: { tc $^straßenname }),
8787
"Foostraße Barstraße Fakestraße",
8888
"Unicode placeholder variables";
8989
}
@@ -94,7 +94,7 @@ is((do { my $दूसरा = 2; sub टोटल ($x) { $x + 2 }; टोटल
9494
class A {
9595
has $!möp = 'pugs';
9696
method äöü {
97-
$!möp.ucfirst();
97+
$!möp.tc();
9898
}
9999
}
100100
is A.new().äöü(), "Pugs", "Unicode methods and attributes";

S03-operators/inplace.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ plan 28;
4444

4545
my $f = "lowercase"; $f .= uc;
4646
my $g = "UPPERCASE"; $g .= lc;
47-
my $h = "lowercase"; $h .= ucfirst;
48-
my $i = "UPPERCASE"; $i .= lcfirst;
47+
my $h = "lowercase"; $h .= tc;
48+
my $i = "UPPERCASE"; $i .= tc;
4949
is($f, "LOWERCASE", "inplace uc");
5050
is($g, "uppercase", "inplace lc");
51-
is($h, "Lowercase", "inplace ucfist");
51+
is($h, "Lowercase", "inplace tc");
5252
is($i, "uPPERCASE", "inplace lcfirst");
5353

5454
# L<S12/"Mutating methods">

S04-phasers/rvalue.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ plan 16;
1414
is $x, 8, 'BEGIN block as expression';
1515

1616
# test that built-ins are available within a BEGIN block:
17-
my $y = BEGIN { ucfirst 'moin' };
17+
my $y = BEGIN { tc 'moin' };
1818
is $y, 'Moin', 'can access built-in functions in BEGIN blocks';
1919

20-
my $z = BEGIN { 'moin'.ucfirst };
20+
my $z = BEGIN { 'moin'.tc };
2121
is $z, 'Moin', 'can access built-in methods in BEGIN blocks';
2222
}
2323

@@ -27,10 +27,10 @@ plan 16;
2727
is $x, 8, 'BEGIN statement prefix as expression';
2828

2929
# test that built-ins are available within a BEGIN block:
30-
my $y = BEGIN ucfirst 'moin';
30+
my $y = BEGIN tc 'moin';
3131
is $y, 'Moin', 'can access built-in functions in BEGIN statement prefix';
3232

33-
my $z = BEGIN 'moin'.ucfirst;
33+
my $z = BEGIN 'moin'.tc;
3434
is $z, 'Moin', 'can access built-in methods in BEGIN statement prefix';
3535
}
3636

S32-str/rindex.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ is(rindex(uc($s), "O"), 7, "rindex on uc");
6262
is($s.uc.rindex("O"), 7, ".uc.rindex ");
6363

6464
# ideas for deeper chained . calls ?
65-
is($s.lc.ucfirst.rindex("w"), 6, ".lc.ucfirst.rindex");
65+
is($s.lc.tc.rindex("w"), 6, ".lc.tc.rindex");
6666

6767
# rindex on non-strings
6868
ok 3459.rindex(5) == 2, 'rindex on integers';

S32-str/uc.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ is(uc("ß"), "SS", "uc() of non-ascii chars may result in two chars");
4545
}
4646

4747
is ~(0.uc), ~0, '.uc on Int';
48-
is ~(0.ucfirst), ~0, '.ucfirst on Int';
48+
is ~(0.tc), ~0, '.tc on Int';
4949
is ~(0.lc), ~0, '.lc on Int';
5050
is ~(0.lcfirst), ~0, '.lcfirst on Int';
5151

@@ -56,7 +56,7 @@ is ~(0.lcfirst), ~0, '.lcfirst on Int';
5656
role A {
5757
has $.thing = 3;
5858
}
59-
for <uc lc ucfirst lcfirst> -> $meth {
59+
for <uc lc tc lcfirst> -> $meth {
6060
my $str = "('Nothing much' but A).$meth eq 'Nothing much'.$meth";
6161
ok eval($str), $str;
6262
}

0 commit comments

Comments
 (0)