#!/usr/bin/pugs
use v6;
use Test;
plan 8;
# L<S29/"Perl6::Str" /lc/>
is(lc("Hello World"), "hello world", "simple lc test");
is(lc(""), "", "empty string");
is(lc("ÅÄÖ"), "åäö", "some finnish non-ascii chars");
is(lc("ÓÒÚÙ"), "óòúù", "accented chars");
$_ = "Hello World";
my $x = .lc;
is($x, "hello world", 'lc uses $_ as default');
{ # test invocant syntax for lc
my $x = "Hello World";
is($x.lc, "hello world", '$x.lc works');
is("Hello World".lc, "hello world", '"Hello World".lc works');
}
is("ÁÉÍÖÜÓŰŐÚ".lc, "áéíöüóűőú", ".lc on Hungarian vowels");