Help language development. Donate to The Perl Foundation

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

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