1. Toby Inkster
  2. p5-moox-struct

Source

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

Diff from to

File t/08alt-constructor.t

 
 Check square-bracket-style constructor.
 
+Also checks constructor called with a hashref (works, but not officially
+supported).
+
+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',
 );
 
-done_testing();
+done_testing();