Browse files

test X::Str::Trans::InvalidArg

  • Loading branch information...
1 parent 7d371b6 commit 7b9ba336e3269e056f6ae581c1f14c3a37c86990 @moritz moritz committed Jun 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 S32-exceptions/misc.t
View
1 S32-exceptions/misc.t
@@ -212,6 +212,7 @@ throws_like 'use fatal; my $x = "5 foo" + 8;', X::Str::Numeric, source => '5 foo
reason => /trailing/;
throws_like '"a".match(:x([1, 2, 3]), /a/)', X::Str::Match::x, got => Array;
throws_like '"a".trans([Any.new] => [Any.new])', X::Str::Trans::IllegalKey, key => Any;
+throws_like '"a".trans(rx/a/)', X::Str::Trans::InvalidArg, got => Regex;
throws_like '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like '1.+foo', X::Method::NotFound, method => 'foo', typename => 'Int';

0 comments on commit 7b9ba33

Please sign in to comment.