Subject: | Better error message for function refs & globs in is_deeply() |
$ perl -wle 'use Test::More tests => 1; is_deeply(sub {}, sub{} )'
1..1
WHOA! No type in _deep_check
This should never happen! Please contact the author immediately!
# Looks like your test died before it could output anything.
This should display an error message saying is_deeply() can't handle function refs instead of a generic WHOA. Do the same for typeglobs.
Also document the behavior of is_deeply wrt function refs and globs, that it only looks to see if they're the same reference but this may change in the future.