Skip to content

Commit

Permalink
Test List.ASSIGN-POS gives PDG error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 11, 2017
1 parent 1101fea commit fed56be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/05-messages/02-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 5;
plan 6;

# RT #132295

Expand Down Expand Up @@ -33,4 +33,8 @@ is-run 「Failure.new(Exception.new); Nil」, :1exitcode,
:err{ .contains: "Died with Exception" },
'Failure.new(Exception.new) does not segfault';

throws-like { (1, 2, 3)[42] = 21 }, X::Assignment::RO,
:message{ .contains: "List" & none "Str" },
'Trying to assign to immutable List element gives useful error';

# vim: ft=perl6 expandtab sw=4

0 comments on commit fed56be

Please sign in to comment.