Permalink
Browse files

test leap second exception

  • Loading branch information...
1 parent a1248db commit c04814dce1149f938c7f3c33988989980dc9fcfe @moritz moritz committed Jun 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-exceptions/misc.t
View
@@ -189,6 +189,8 @@ 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 'DateTime.new(year => 2012, month => 5, day => 22, hour => 18, minute => 3, second => 60)',
+ X::OutOfRange, comment => /'leap second'/;
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;

0 comments on commit c04814d

Please sign in to comment.