Skip to content
Newer
Older
100644 23 lines (17 sloc) 765 Bytes
06b839a @moritz transmogrify ucfirst tests into tc tests
moritz authored
1 use v6;
2
3 use Test;
4
33b7005 @colomon Add tests for code points greater than 0xFFFF.
colomon authored
5 plan 9;
06b839a @moritz transmogrify ucfirst tests into tc tests
moritz authored
6
7 # L<S32::Str/Str/ucfirst>
8
9 is tc("hello world"), "Hello world", "simple";
10 is tc(""), "", "empty string";
11 is tc("üüüü"), "Üüüü", "umlaut";
12 is tc("óóóó"), "Óóóó", "accented chars";
57bff55 @jnthn Unfudge .tc tests we now pass.
jnthn authored
13 # RT #124683
a80e467 @usev6 Fudge tests for .tc on JVM
usev6 authored
14 #?rakudo.jvm 2 todo 'RT #124683'
06b839a @moritz transmogrify ucfirst tests into tc tests
moritz authored
15 is tc('ßß'), 'Ssß', 'sharp s => Ss';
9fcdcd6 @moritz test tc(LATIN SMALL LETTER LJ)
moritz authored
16 is tc('lj'), 'Lj', 'lj => Lj (in one character)';
06b839a @moritz transmogrify ucfirst tests into tc tests
moritz authored
17 is 'abc'.tc, 'Abc', 'method form of title case';
8bcf6d1 @moritz another tc test
moritz authored
18 is 'aBcD'.tc, 'ABcD', 'tc only modifies first character';
9c40515 @dnmfarrell fixed appended RT number to be within quoted string
dnmfarrell authored
19 #?rakudo.jvm todo 'tc works on codepoints greater than 0xffff RT #124684'
33b7005 @colomon Add tests for code points greater than 0xFFFF.
colomon authored
20 is "\x1044E\x10427".tc, "\x10426\x10427", 'tc works on codepoints greater than 0xffff';
06b839a @moritz transmogrify ucfirst tests into tc tests
moritz authored
21
22 # vim: ft=perl6
Something went wrong with that request. Please try again.