Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update and expand tests for binding to unbindable stuff

  • Loading branch information...
commit c6df8c596faed9d1ec19fd9008a3ef36914062f0 1 parent 16238cd
@moritz moritz authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 S32-exceptions/misc.t
View
8 S32-exceptions/misc.t
@@ -91,10 +91,12 @@ throws_like '1!foo()',
X::Method::Private::Unqualified,
method => 'foo';
-throws_like 'sub f() { }; f() := 2', X::Bind::WrongLHS;
+throws_like 'sub f() { }; f() := 2', X::Bind::Comp;
throws_like 'my int $x := 2', X::Bind::NativeType;
-throws_like 'my @a; @a[] := <foo bar baz>', X::Bind::ZenSlice, what => 'array';
-throws_like 'my %a; %a{} := foo=>1, bar=>2, baz=>3', X::Bind::ZenSlice, what => 'hash';
+throws_like 'my @a; @a[] := <foo bar baz>', X::Bind::ZenSlice, type => Array;
+throws_like 'my %a; %a{} := foo=>1, bar=>2, baz=>3', X::Bind::ZenSlice, type => Hash;
+throws_like 'my @a; @a[0, 1] := (2, 3)', X::Bind::Slice, type => Array;
+throws_like 'my %a; %a<a b> := (2, 3)', X::Bind::Slice, type => Hash;
throws_like 'for (1; 1; 1) { }', X::Obsolete,
Please sign in to comment.
Something went wrong with that request. Please try again.