7 use Test::Moose qw( with_immutable );
10 'Test::Output' => '0.01',
19 stderr_like { Baz->new( x => 42, 'y' ) }
20 qr{\QThe new() method for Baz expects a hash reference or a key/value list. You passed an odd number of arguments at t/010_basics/022_buildargs_warning.t line \E\d+},
21 'warning when passing an odd number of args to new()';
23 stderr_unlike { Baz->new( x => 42, 'y' ) }
24 qr{\QOdd number of elements in anonymous hash},
25 'we suppress the standard warning from Perl for an odd number of elements in a hash';