in reply to Re^4: Recursively traverse two data structures and test for match
in thread Recursively traverse two data structures and test for match
Sometimes it should, especially when testing the overloaded objects. It is the lack of any is_deeply test which is able to see through overloading that lead me to do something hokey and do cmp_eq( Data::Dump::Streamer::Dump($a), 'eq', Data::Dump::Streamer::Dump($b) ) tests instead.
If an overloaded object wanted to pretend to be normal, it can use an utterly normal test and it'll get called as usual. Its the stuff like Test::More which should be able to have x-ray eyes to see through overloading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Recursively traverse two data structures and test for match
by jdporter (Paladin) on May 23, 2005 at 15:45 UTC | |
by diotalevi (Canon) on May 23, 2005 at 15:56 UTC | |
by tye (Sage) on May 23, 2005 at 16:08 UTC | |
by diotalevi (Canon) on May 23, 2005 at 17:43 UTC | |
|
Re^6: Recursively traverse two data structures and test for match
by dragonchild (Archbishop) on May 23, 2005 at 15:24 UTC |