The hash/field/etc builder system is always optional. You can always mix
them, it is perfectly fine to use the builders for both 'is' and 'like',
though for the builders it really does not matter which of the 2 you use
since strict/relaxed only applies to conversions of
hashrefs/arrays/scalars, ch
> On Jul 27, 2016, at 10:13 AM, Chad Granum wrote:
>
> Specifically "This will ignore hash keys or array indexes that you do not
> actually specify in your $expect structure." directly documents the behavior.
>
Right. That is a fact that is clearly spelled out. I think it would be
helpful
I thought I had documented the differences pretty well. If you look here
https://metacpan.org/pod/Test2::Tools::Compare#COMPARISON-TOOLS and read
both the 'is()' and 'like()' sections it makes it clear.
is:
> his is the strict checker. The strict checker requires a perfect match
> between $got an
I was going to mail this to Chad directly, but I think it’s worth airing
publicly.
As a newcomer to Test2, it was never clear to me until just now when to use
is() or like() for deep structures. Given this code:
my $errors = do_something();
is( @{$errors}, 0. ‘No errors back from do_so