Help language development. Donate to The Perl Foundation

P5chr cpan:ELIZABETH last updated on 2020-11-11

t/03-ord.t
use v6.*;
use Test;
use P5chr;

plan 4;

is ord('A'),   65, 'did we get the right number from single';
is ord('ABC'), 65, 'did we get the right number from multiple';

with 'A'   { is .&ord, 65, 'did we get the right number from single' }
with 'ABC' { is .&ord, 65, 'did we get the right number from multiple' }

# vim: expandtab shiftwidth=4