Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (30 sloc) 1.216 kb
58135b3 [t/spec] changed 'use v6-alpha;' to 'use v6;'
moritz authored
1 use v6;
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
2
3 use Test;
4
3df92ce @moritz test lc("ΣΣΣ")
moritz authored
5 plan 13;
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
6
db6b784 [t/spec] fix smartlinks in S32-str
moritz authored
7 # L<S32::Str/Str/lc>
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
8
9 is(lc("hello world"), "hello world", "lowercasing string which is already lowercase");
10 is(lc("Hello World"), "hello world", "simple lc test");
11 is(lc(""), "", "empty string");
12 is(lc("ÅÄÖ"), "åäö", "some finnish non-ascii chars");
13 is(lc("ÄÖÜ"), "äöü", "lc of German Umlauts");
14 is(lc("ÓÒÚÙ"), "óòúù", "accented chars");
15 is(lc('A'..'C'), "a b c", "lowercasing char-range");
16
0e169bd [t/spec] rakudo skip markers
particle authored
17 {
c84935c Added named arguments to string tests
frew authored
18 $_ = "Hello World";
0e169bd [t/spec] rakudo skip markers
particle authored
19 my $x = .lc;
20 is($x, "hello world", 'lc uses $_ as default');
21 }
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
22
23 { # test invocant syntax for lc
24 my $x = "Hello World";
25 is($x.lc, "hello world", '$x.lc works');
5b16052 [spec] unfudged a few tests, added a test to S29-str/lc.t
moritz authored
26 is($x, 'Hello World', 'Invocant unchanged');
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
27 is("Hello World".lc, "hello world", '"Hello World".lc works');
28 }
29
30 is("ÁÉÍÖÜÓŰŐÚ".lc, "áéíöüóűőú", ".lc on Hungarian vowels");
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
31
3df92ce @moritz test lc("ΣΣΣ")
moritz authored
32 # https://en.wikipedia.org/wiki/Title_case#Special_cases
33 # "The Greek letter Σ has two different lowercase forms: "ς" in word-final
34 # position and "σ" elsewhere."
35
36 #?niecza todo 'advanced Unicode wizardry'
9c40515 @dnmfarrell fixed appended RT number to be within quoted string
dnmfarrell authored
37 #?rakudo.moar todo 'case folding, MoarVM #87 RT #124689'
3df92ce @moritz test lc("ΣΣΣ")
moritz authored
38 is 'ΣΣΣ'.lc, 'σσς', 'lower-casing of greek Sigma respects word-final special case';
39
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
40 # vim: ft=perl6
Something went wrong with that request. Please try again.