Permalink
Browse files

X::OutOfRange

  • Loading branch information...
moritz committed Feb 26, 2012
1 parent 26f6834 commit 1bf4f1dc02e1ef7f26f7cba2415a33dac6e5b4d9
Showing with 3 additions and 0 deletions.
  1. +3 −0 S32-exceptions/misc.t
View
@@ -155,4 +155,7 @@ throws_like ':45<abcd>', X::Syntax::Number::RadixOutOfRange, radix => 45;
throws_like 'rx:g/a/', X::Syntax::Regex::Adverb, adverb => 'g', construct => 'rx';
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>>/;
+
done;

0 comments on commit 1bf4f1d

Please sign in to comment.