val1 was renamed to expected and val2 to value as you suggested. This
include here.

I think this is clear enough. I made a commit for this.


On Tue, Jul 9, 2013 at 3:41 PM, lamblin <notifications@github.com> wrote:

> In theano/tests/unittest_tools.py:
>
> > +        ssio = StringIO()
> > +        print >> ssio, "  Value    :",
> > +        print >> ssio, val2.shape,
> > +        print >> ssio, val2.dtype,
> > +        print >> ssio, val2.strides,
> > +        print >> ssio, val2.min(),
> > +        print >> ssio, val2.max(),
> > +        print >> ssio, numpy.isinf(val2).sum(),
> > +        print >> ssio, numpy.isnan(val2).sum(),
> > +        # only if all succeeds to we add anything to sio
> > +        print >> sio, ssio.getvalue()
> > +    except Exception:
> > +        pass
> > +
> > +    print >> sio, "  val1    :", val1
> > +    print >> sio, "  val2    :", val2
>
> Should we print "expected" and "computed" value here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Theano/Theano/pull/1106/files#r5099613>
> .
>