Permalink
Browse files

test X::DateTime::TimezoneClash

  • Loading branch information...
1 parent 85f737a commit 7a77b2a82bb933c511cfe9223bc2d96a25eafc76 @moritz moritz committed Jun 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 S32-exceptions/misc.t
View
1 S32-exceptions/misc.t
@@ -287,6 +287,7 @@ throws_like 'eval("foo", :lang<no-such-language>)',
throws_like 'DateTime.now.truncated-to(:foo)', X::Temporal::Truncation;
throws_like 'Date.today.truncated-to(:foo)', X::Temporal::Truncation;
+throws_like 'DateTime.new("1998-12-31T23:59:60+0200", :timezone<Z>)', X::DateTime::TimezoneClash;
throws_like 'Set(Any.new)', X::Set::Coerce;

0 comments on commit 7a77b2a

Please sign in to comment.