Permalink
Browse files

test index out of range exception

  • Loading branch information...
1 parent 97359c6 commit 58512ac3b10311387a36dec418e5bd2c5815dc9e @moritz moritz committed Apr 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 S32-exceptions/misc.t
View
@@ -174,6 +174,7 @@ throws_like 'my sub f($x, $y:) { }', X::Syntax::Signature::InvocantMarker;
throws_like 'Date.new("2012-02-30")', X::OutOfRange,
range => Range, message => rx/<<1\.\.29>>/;
+throws_like 'use fatal; "foo"[2]', X::OutOfRange, what => rx:i/index/, range => 0..0, got => 2;
throws_like 'sub f() { }; &f.unwrap("foo")', X::Routine::Unwrap;
throws_like 'Mu.new(1)', X::Constructor::Positional;

0 comments on commit 58512ac

Please sign in to comment.