Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up more exact error message
  • Loading branch information
lizmat committed Dec 5, 2020
1 parent 806ab82 commit 1a84eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S09-typed-arrays/native-num.t
Expand Up @@ -159,10 +159,10 @@ for @num -> $T {
what => "array[$t]",
"Trying to shift an empty $t array dies";
throws-like { @arr[0] := my $a }, Exception,
message => 'Cannot bind to a natively typed array',
message => 'Cannot bind to a native num array',
"Cannot push non-int/Int to $t array";
throws-like { @arr[0]:delete }, Exception,
message => 'Cannot delete from a natively typed array',
message => 'Cannot delete from a native num array',
"Cannot push non-int/Int to $t array";
throws-like { @arr = 0e0..Inf }, X::Cannot::Lazy,
action => 'initialize',
Expand Down

0 comments on commit 1a84eef

Please sign in to comment.