Help language development. Donate to The Perl Foundation

P5lc zef:lizmat last updated on 2021-09-09

t/02-lc.t
use v6.*;
use Test;
use P5lc;

plan 6;

is lc('FOO'), 'foo', 'did we get a good foo';
is lc('foo'), 'foo', 'did we get same foo';
is lc(''),       '', 'did we get a good empty string';

with "BAR" { is .&lc, 'bar', 'did we get a good bar' }
with "bar" { is .&lc, 'bar', 'did we get same bar' }
with ""    { is .&lc, '',    'did we get a good empty string' }

# vim: expandtab shiftwidth=4