Problems? Is your data what you think it is? | |
PerlMonks |
Re: Test scalar refs (not values) in deeply nested structureby Corion (Patriarch) |
on Jul 23, 2020 at 19:50 UTC ( [id://11119720]=note: print w/replies, xml ) | Need Help?? |
The Test::More documentation says for is_deeply: is_deeply() compares the dereferenced values of references, the references themselves (except for their type) are ignored. ... so I'm not sure what you expect. If you want to compare the identity of the references too, you will need to write your own comparison tool, but I guess that a simple shallow comparison already is enough for that case.
In Section
Seekers of Perl Wisdom
|
|