Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (27 sloc) 1.011 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
c84935c Added named arguments to string tests
frew 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");
e053818 [t/spec/] clean up havoc in S29-str, and remove some overly long tests t...
moritz authored
11 #?rakudo skip 'calling positional args by name'
c84935c Added named arguments to string tests
frew authored
12 is(lc(:string("STATION")), "station", "lc works with named argument");
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
13 is(lc(""), "", "empty string");
f60ff61 [fudge] more sub counting tweaks
lwall authored
14 #?rakudo 3 skip 'unicode'
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
15 is(lc("ÅÄÖ"), "åäö", "some finnish non-ascii chars");
16 is(lc("ÄÖÜ"), "äöü", "lc of German Umlauts");
17 is(lc("ÓÒÚÙ"), "óòúù", "accented chars");
18 is(lc('A'..'C'), "a b c", "lowercasing char-range");
19
0e169bd [t/spec] rakudo skip markers
particle authored
20 {
c84935c Added named arguments to string tests
frew authored
21 $_ = "Hello World";
0e169bd [t/spec] rakudo skip markers
particle authored
22 my $x = .lc;
23 is($x, "hello world", 'lc uses $_ as default');
24 }
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
25
26 { # test invocant syntax for lc
27 my $x = "Hello World";
28 is($x.lc, "hello world", '$x.lc works');
5b16052 [spec] unfudged a few tests, added a test to S29-str/lc.t
moritz authored
29 is($x, 'Hello World', 'Invocant unchanged');
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
30 is("Hello World".lc, "hello world", '"Hello World".lc works');
31 }
32
f60ff61 [fudge] more sub counting tweaks
lwall authored
33 #?rakudo skip 'unicode'
1c32a4a Test suite refactoring (spec/S29).
cosimo authored
34 is("ÁÉÍÖÜÓŰŐÚ".lc, "áéíöüóűőú", ".lc on Hungarian vowels");
Something went wrong with that request. Please try again.