Re: [Perlunit-users] Patch to fix assert_deep_equals() on circular structures.
Status: Beta
Brought to you by:
mca1001
From: Adam S. <ad...@sp...> - 2003-02-04 10:42:49
|
Francis J. Lacoste (fra...@co...) wrote: > (I'm sending this here, altough the mailing lists seems quite dormant > looking from the archives on SF.) They are, I'm afraid. My new job doesn't require the use of PerlUnit so I basically have next to no time to maintain it :-( If someone would like to take over, I'd be really grateful. I'll still hang around to answer questions, although the response time will usually be long. (Unless you want to pay me for support, in which case I can escalate the priority.) > I'm using the perl unit framework in the Lire log analyser and we have > objects which have circular references. Unfortunately, > assert_deep_equals() will enter infinite recursion on such structure. > > I'm attaching the a patch (apply using -p1) which fixes this. The patch > also adds the proper check to the AssertTest unit tests. This is great; thanks very much indeed. I'll apply it to CVS when I get a spare moment, and make a new release. Maybe this weekend. |