Skip to content

Commit

Permalink
Add test description
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Sep 27, 2016
1 parent ce3050e commit 5dfd859
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-list/duckmap.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ This test tests C<duckmap>.
my $list = (1, (2,3), "a");
is-deeply duckmap(-> Int $x { $x ~~ Int ?? $x !! Any }, $list), (1, (2, 3), 'a'), "duckmap doesn't hang"; # RT #129321
#?rakudo todo "RT #129363 duckmap doesn't preserve structure types"
is-deeply duckmap(-> Int $x { $x ~~ Int ?? $x !! Any }, [1, [2,3], 4]), [1, [2,3], 4]
is-deeply duckmap(-> Int $x { $x ~~ Int ?? $x !! Any }, [1, [2,3], 4]), [1, [2,3], 4],
'duckmap preserves structure types';
} #2

# vim: ft=perl6

0 comments on commit 5dfd859

Please sign in to comment.