Add failing test for CAFs auto-arrayification when calling accessors with a list...
Florian Ragwitz [Tue, 3 Feb 2009 18:27:42 +0000 (18:27 +0000)]
t/list_assign.t [new file with mode: 0644]

diff --git a/t/list_assign.t b/t/list_assign.t
new file mode 100644 (file)
index 0000000..efa4d0d
--- /dev/null
@@ -0,0 +1,17 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+use MooseX::Adopt::Class::Accessor::Fast;
+
+{
+  package Some::Class;
+  use strict;
+  use warnings;
+  use base qw/Class::Accessor::Fast/;
+
+  __PACKAGE__->mk_accessors(qw/ foo /);
+}
+
+my $i = bless {}, 'Some::Class';
+$i->foo(qw/bar baz/);
+is_deeply($i->foo, [qw/ bar baz /]);