← Back to team overview

larry-discuss team mailing list archive

Re: [Blueprint simplify-unit-testing] Create a larry specific assert function to simplify unit testing

 

On Thu, Feb 4, 2010 at 3:04 PM, Keith Goodman <kwgoodman@xxxxxxxxx> wrote:
> On Thu, Feb 4, 2010 at 2:57 PM,  <josef.pktd@xxxxxxxxx> wrote:
>> nocopy, noreference need to be checked
>
> Yes, I think that should be the next step. No point testing
> assert_larry_equal until then. Adding some nice output that says where
> the reference or copy is located (label, which axis, data array) would
> be useful. I'll take a look at that.

OK, r168 will help us debug. It prints where the reference or copy is located:

>> x = larry([1.0])
>> y = x
>> la.util.testing.assert_noreference(x,y)
---------------------------------------------------------------------------
AssertionError:

The data arrays share a reference.
The label along axis 0 share a reference



References