You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use v5.10;
use Mojo::JSON qw(encode_json decode_json);
use Test2::Tools::Compare qw(hash is T F end etc field);
my$data = '{ "aaa": true, "bbb": false }';
my$h = decode_json($data);
my$cmp = hash {
field aaa=> F();
field bbb=> T();
end();
};
is($h, $cmp, 'Test');
done_testing;
This passes (It should not)
The reference check in here: https://metacpan.org/dist/Test2-Suite/source/lib/Test2/Tools/Compare.pm#L252 is incorrect. Several of the quick-checks have similar incorrect reference logic.
The text was updated successfully, but these errors were encountered: