Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.409 kb
use v6;
use Test;
plan 4;
#L<S02/Radix interpolation/"Characters indexed by hex numbers">
{
my @unicode =
'a', "\x61",
'æ', "\xE6",
'喃', "\x5583",
'𨮁', "\x28B81",
;
for @unicode -> $literal, $codepoint {
is(
$codepoint,
$literal,
'Does a character codepoint (\x..) evaluate to the same thing as its literal?'
);
}
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.