Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check for X::Constructor::Positional .name attribute.
  • Loading branch information
timo committed Jan 24, 2013
1 parent 9a11e22 commit b832056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -188,7 +188,8 @@ throws_like 'DateTime.new(year => 2012, month => 5, day => 22, hour => 18, minut
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;
throws_like 'Mu.new(1)', X::Constructor::Positional;
throws_like 'Mu.new(1)', X::Constructor::Positional, name => "Mu";
throws_like 'class Foo { }; Foo.new(1, 2, 3);', X::Constructor::Positional, name => "Foo";
throws_like 'my %h = 1', X::Hash::Store::OddNumber;

# TOOD: might be X::Syntax::Malformed too...
Expand Down

0 comments on commit b832056

Please sign in to comment.