Permalink
Browse files

test X::Temporal::InvalidFormat

  • Loading branch information...
1 parent d9262ef commit a1248dbe9b201c1bf7cc351f87045d6fd4db55f5 @moritz moritz committed Jun 3, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 S32-exceptions/misc.t
@@ -266,4 +266,12 @@ throws_like '<a b> »+« <c>', X::HyperOp::NonDWIM,
throws_like 'my sub f() { gather { return } }; ~f()', X::ControlFlow::Return;
+throws_like 'DateTime.new("2012/04")', X::Temporal::InvalidFormat,
+ invalid-str => '2012/04',
+ target => 'DateTime';
+
+throws_like 'Date.new("2012/04")', X::Temporal::InvalidFormat,
+ invalid-str => '2012/04',
+ target => 'Date';
+
done;

0 comments on commit a1248db

Please sign in to comment.