Skip to content

Commit

Permalink
X::Buf::Pack
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 27, 2012
1 parent eff5942 commit 88dbaa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S32-exceptions/misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ sub throws_like($code, $ex_type, *%matcher) {
}
}

throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
throws_like 'pack("B", 1)', X::Buf::Pack, directive => 'B';
throws_like 'Buf.new.unpack("B")', X::Buf::Pack, directive => 'B';
throws_like 'my class Foo { method a() { $!bar } }', X::Attribute::Undeclared,
name => '$!bar', package-name => 'Foo';
throws_like 'sub f() { $^x }', X::Signature::Placeholder,
Expand Down

0 comments on commit 88dbaa7

Please sign in to comment.