Skip to content

Commit

Permalink
[t/spec] test for RT #75266, indexing array attributes with non-Ints
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@31413 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed Jun 22, 2010
1 parent d92bacd commit f1fac49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S12-attributes/instance.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 128;
plan 129;

=begin pod
Expand Down Expand Up @@ -337,6 +337,10 @@ is Foo7e.new.attr, 42, "default attribute value (1)";
is $o.m0, 'a', '@.a[0] works';
is $o.m1, 'b', '@.a[*-2] works';
is $o.m2, 'c', '@.a[*-1] works';

# RT #75266
is ArrayAttribTest.new(a => <x y z>).a[2.0], 'z',
'Can index array attributes with non-integers';
}

{
Expand Down Expand Up @@ -573,4 +577,5 @@ is Foo7e.new.attr, 42, "default attribute value (1)";
is TestMethodAll.new(a => 5).all, 5, 'Can call a method all()';
}


# vim: ft=perl6

0 comments on commit f1fac49

Please sign in to comment.