Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test X::Str::Trans::IllegalKey, sorear++

  • Loading branch information...
commit 7d371b61e11cd7af61bada3c1fa92fe33887c0bc 1 parent 3ed2a34
@moritz moritz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  S32-exceptions/misc.t
View
2  S32-exceptions/misc.t
@@ -211,6 +211,7 @@ throws_like 'my sub a { POST 0 }; a()', X::Phaser::PrePost, phaser => 'POST', co
throws_like 'use fatal; my $x = "5 foo" + 8;', X::Str::Numeric, source => '5 foo', pos => 1,
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 '1.foo', X::Method::NotFound, method => 'foo', typename => 'Int';
throws_like '1.+foo', X::Method::NotFound, method => 'foo', typename => 'Int';
@@ -285,4 +286,5 @@ 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;
+
done;
Please sign in to comment.
Something went wrong with that request. Please try again.