|Welcome to the Monastery|
Re^2: Inverting test conditions in Test::More ?by LanX (Cardinal)
|on Jul 24, 2020 at 12:14 UTC||Need Help??|
Supposing I just wanted to test deeply nested structures ...
> Looks like you could easily use Test::More::_deep_check
that's an internal function, Test::More provides explain() for serialization within the regular API
see also eq_array() and eq_hash() but "they may be deprecated in future versions."
> If you can ensure consistent/ordered serialization in the case of your structures being hash refs
Please note that the order of hash-keys within the same Perl run is guarantied to be stable.
Furthermore is explain() ordering hash-keys alphabetically AFAICT.
( Data::Dump too IIRC )