Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Tweak typed error checks"
This reverts commit ed09f71.
  • Loading branch information
lizmat committed Jul 15, 2015
1 parent 6ffdc85 commit 9ace330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions S09-typed-arrays/native-int.t
Expand Up @@ -124,11 +124,11 @@ for @int,@uint -> $T {

@arr = ();
throws-like { @arr.pop }, X::Cannot::Empty,
action => 'pop',
action => '.pop',
what => "array[$t]",
"Trying to pop an empty $t array dies";
throws-like { @arr.shift }, X::Cannot::Empty,
action => 'shift',
action => '.shift',
what => "array[$t]",
"Trying to shift an empty $t array dies";

Expand Down
4 changes: 2 additions & 2 deletions S09-typed-arrays/native-num.t
Expand Up @@ -128,11 +128,11 @@ for @num -> $T {

@arr = ();
throws-like { @arr.pop }, X::Cannot::Empty,
action => 'pop',
action => '.pop',
what => "array[$t]",
"Trying to pop an empty $t array dies";
throws-like { @arr.shift }, X::Cannot::Empty,
action => 'shift',
action => '.shift',
what => "array[$t]",
"Trying to shift an empty $t array dies";
throws-like { @arr[0] := my $a }, X::AdHoc,
Expand Down

0 comments on commit 9ace330

Please sign in to comment.