Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.423 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.kv -> $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.