On Tue, 8 Jan 2013, Steffen Winkler via RT wrote:
Show quoted text> Andreas König gave me a hint. The problem is the perl version. If it
> runs on perl 5.17 the hash key randomization kills 50 % of that tests.
>
> --------------------------------------------------------------------
>
> use strict;
> use warnings;
>
> use Params::Validate qw( validate_with SCALAR ARRAYREF );
>
> use Test::More;
> use Test::Fatal;
>
> like(
> exception { foo( { x => undef, y => undef } ) },
> qr{ \Qwas an 'undef'\E .*? \Qtypes: scalar\E }xms,
> 'cannot pass undef when type is SCALAR'
> );
Well, that's just cause half the time it's failing out because of the "x"
param being wrong first.
There's no bug here other than in your test. You're passing two failures
together and expecting a specific one to be reported, but there's nothing
in the PV docs guaranteeing a specific order of evaluation for
constraints.
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/