#13975: improve error reporting in some tests
---------------------------+------------------------------------------------
Reporter: cnassau | Owner: nthiery
Type: enhancement | Status: new
Priority: minor | Milestone: sage-5.6
Component: categories | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Christian Nassau
Merged in: | Dependencies:
Stopgaps: |
---------------------------+------------------------------------------------
In case of failure the routines
* {{{_test_associativity}}}
* {{{_test_distributivity}}}
* {{{_test_one}}}
* {{{_test_prod}}}
should report the elements that failed.
The attached patch just enhances the error messages and adds some test
cases similar to the following:
{{{#!python
sage: import types
sage: P.<x,y>=PolynomialRing(QQbar,"x,y")
sage: x._mul_ = types.MethodType(lambda a,b: 0,x)
sage: y._mul_ = types.MethodType(lambda a,b: a,x)
sage: P._test_associativity(elements=[x,y])
Traceback (most recent call last):
...
AssertionError: associativity test failed on (x,y,z) = (y,y,x)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13975>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.