Re: Is_deeply and closure-driven coderefs

2006-05-30 Thread chromatic
On Tuesday 30 May 2006 12:08, Nicholas Perez wrote: > Why not compare signatures? Is that not feasible? Which signatures? Is it important that the code comes from the same place (check the CV properties) or that the code has bound to the same lexicals (PadWalker) or that the lexicals are in th

Re: Is_deeply and closure-driven coderefs

2006-05-30 Thread Nicholas Perez
On 5/30/06, Andrew Gianni <[EMAIL PROTECTED]> wrote: The trick is what does "equal" mean for code refs? If you want to test that the code refs are functionally equivalent, call them with various arguments and test the results. If you want to test that the code the code refs refer to is equivale

Re: Is_deeply and closure-driven coderefs

2006-05-30 Thread Michael G Schwern
On 5/30/06, Andrew Gianni <[EMAIL PROTECTED]> wrote: I have a subroutine that populates a hash of arrays with coderefs by calling closures. I'm trying to call Test::More::is_deeply to compare two structures that should be identical and I'm running into trouble. When none of the closures take arg

Is_deeply and closure-driven coderefs

2006-05-30 Thread Andrew Gianni
I have a subroutine that populates a hash of arrays with coderefs by calling closures. I'm trying to call Test::More::is_deeply to compare two structures that should be identical and I'm running into trouble. When none of the closures take arguments, everything is fine, but when one of the closure