#13975: improve error reporting in some tests
------------------------------------+---------------------------------------
       Reporter:  cnassau           |         Owner:  nthiery         
           Type:  enhancement       |        Status:  needs_work      
       Priority:  minor             |     Milestone:  sage-5.7        
      Component:  categories        |    Resolution:                  
       Keywords:                    |   Work issues:                  
Report Upstream:  N/A               |     Reviewers:  Travis Scrimshaw
        Authors:  Christian Nassau  |     Merged in:                  
   Dependencies:                    |      Stopgaps:                  
------------------------------------+---------------------------------------

Comment (by cnassau):

 Replying to [comment:5 nthiery]:
 > However, with the current patch, this does reduce the lisibility of the
 test function: I want the mathematical test to be written in a way that is
 as close as possible to the math.

 I suggested this patch because it would have saved me a lot of time
 recently. Now you're saying we can't have more helpful error messages
 because

    {{{tester.assert_(self.prod([x]) == x)}}}

 is so much more readable than

    {{{tester.assertEqual(self.prod([x]),x,LazyFormat("self.prod([x]) != x
 for x=%s") % (x,))}}}

 Frankly, I find this un peu ridicule...

 Cheers, \\
 Christian

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13975#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to