Skip to content

Commit cfdba7b

Browse files
committed
Merge branch 'master' of https://github.com/perl6/roast
2 parents cc39be9 + 8861b64 commit cfdba7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎S05-modifier/ii.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ my @smart_tests = (
4040
['He lo', 'FOOO', 'Fooo', 'ucfrst(lc())'],
4141
['hE LO', 'fooo', 'fOOO', 'lcfrst(uc())'],
4242
['hE LO', 'foobar', 'fOOBAR', 'lcfrst(uc())'],
43-
['Ab Cd E', 'abc de gh i', 'Abc De Gh I', 'capitalize()'],
43+
['Ab Cd E', 'abc de gh i', 'Abc De Gh I', 'wordcase()'],
4444
);
4545

4646
for @smart_tests -> $t {

‎S32-str/substr.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ plan 92;
5959
is(substr("hello foo bar", 6, 3), "foo", "substr on literal string");
6060
is("hello foo bar".substr(6, 3), "foo", ".substr on literal string");
6161
is("hello foo bar".substr(6, 3).uc, "FOO", ".substr.uc on literal string");
62-
is("hello foo bar and baz".substr(6, 10).capitalize, "Foo Bar An", ".substr.capitalize on literal string");
62+
is("hello foo bar and baz".substr(6, 10).wordcase, "Foo Bar An", ".substr.wordcase on literal string");
6363
is("hello »« foo".substr(6, 2), "»«", ".substr on unicode string");
6464
is("שיעבוד כבר".substr(4, 4), "וד כ", ".substr on Hebrew text");
6565
}
@@ -119,7 +119,7 @@ sub l (Int $a) { my $l = $a; return $l }
119119
is(substr("hello foo bar", 6, l(3)), "foo", "substr on literal string (substr(Int, StrLen)).");
120120
is("hello foo bar".substr(6, l(3)), "foo", ".substr on literal string (substr(Int, StrLen)).");
121121
is("hello foo bar".substr(6, l(3)).uc, "FOO", ".substr.uc on literal string (substr(Int, StrLen)).");
122-
is("hello foo bar and baz".substr(6, l(10)).capitalize, "Foo Bar An", ".substr.capitalize on literal string (substr(Int, StrLen)).");
122+
is("hello foo bar and baz".substr(6, l(10)).wordcase, "Foo Bar An", ".substr.wordcase on literal string (substr(Int, StrLen)).");
123123
is("hello »« foo".substr(6, l(2)), "»«", ".substr on unicode string (substr(Int, StrLen)).");
124124
is("שיעבוד כבר".substr(4, l(4)), "וד כ", ".substr on Hebrew text (substr(Int, StrLen)).");
125125
}
@@ -239,7 +239,7 @@ sub p (Int $a) { my $p = $a; return $p }
239239
is(substr("hello foo bar", 6, p(3)), "foo", "substr on literal string (substr(Int, StrPos)).");
240240
is("hello foo bar".substr(6, p(3)), "foo", ".substr on literal string (substr(Int, StrPos)).");
241241
is("hello foo bar".substr(6, p(3)).uc, "FOO", ".substr.uc on literal string (substr(Int, StrPos)).");
242-
is("hello foo bar and baz".substr(6, p(10)).capitalize, "Foo Bar An", ".substr.capitalize on literal string (substr(Int, StrPos)).");
242+
is("hello foo bar and baz".substr(6, p(10)).wordcase, "Foo Bar An", ".substr.wordcase on literal string (substr(Int, StrPos)).");
243243
is("hello »« foo".substr(6, p(2)), "»«", ".substr on unicode string (substr(Int, StrPos)).");
244244
is("שיעבוד כבר".substr(4, p(4)), "וד כ", ".substr on Hebrew text (substr(Int, StrPos)).");
245245
}

0 commit comments

Comments
 (0)