Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove possible hash-key order dependency
  • Loading branch information
dwarring committed Oct 22, 2014
1 parent 238cd55 commit 2ad0fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/advent2010-day08.t
Expand Up @@ -10,7 +10,7 @@ is do {flip "hello"}, "olleh", 'string reversal';
is do {join ", ", reverse <ab cd ef>}, "ef, cd, ab", 'list reversal';

my %capitals = France => "Paris", UK => "London";
is_deeply %capitals.invert, ("Paris" => "France", "London" => "UK").list.item, 'hash inversion';
is_deeply %capitals.invert.sort, $("London" => "UK", "Paris" => "France"), 'hash inversion';

my %original := %capitals;
my %inverse;
Expand Down

0 comments on commit 2ad0fbe

Please sign in to comment.