1. Toby Inkster
  2. p5-moox-struct


p5-moox-struct / t / 08alt-constructor.t

Diff from to

File t/08alt-constructor.t

  • Ignore whitespace
 Check square-bracket-style constructor.
+Also checks constructor called with a hashref (works, but not officially
+Tests that objects overloading both hash and array are considered to be
+hashrefs by the constructor, not arrayrefs.
 =head1 AUTHOR
 Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
 	'if constructed with an object that "does" array and hash, hash is preferred',