Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S02-literals/hex_chars.t] impose some order
No need to store the pairs in an unordered hash, muddling the
relationship between the test data and the test output. Storing
things in a straight-up array instead.
  • Loading branch information
Carl Masak committed Jun 22, 2013
1 parent 2611f3d commit 995c98c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions S02-literals/hex_chars.t
Expand Up @@ -5,14 +5,14 @@ plan 4;

#L<S02/Radix interpolation/"Characters indexed by hex numbers">
{
my %unicode = (
'a' => "\x61",
'æ' => "\xE6",
'' => "\x5583",
'𨮁' => "\x28B81",
);
my @unicode =
'a', "\x61",
'æ', "\xE6",
'', "\x5583",
'𨮁', "\x28B81",
;

for %unicode.kv -> $literal, $codepoint {
for @unicode -> $literal, $codepoint {
is(
$codepoint,
$literal,
Expand Down

0 comments on commit 995c98c

Please sign in to comment.