#15223: Let the `TestSuite` test that the construction of a parent returns the
parent
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.12
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/SimonKing/ticket/15223 | a81fcc1072df88cc369d7aa0b7ae423fd97d7f02
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by nbruin):
Should specifying the category even be allowed anyway? What can be
achieved by doing so? You can get horrible nonsense:
{{{
sage: A=IntegerModRing(16,category=Fields())
sage: P.<x>=A[]
sage: P in UniqueFactorizationDomains()
True
sage: (2*x+1)^8
1
}}}
Of course if you do this, you're just asking for the insanity. Normally
everything is fine:
{{{
sage: B=IntegerModRing(16)
sage: Q.<x>=B[]
sage: Q in Uniqu
UniqueFactorizationDomains UniqueRepresentation
sage: Q in UniqueFactorizationDomains()
False
}}}
But it does mean that if `B` here were to be identical to `A`, then the
first example would permanently poison the sage session with nonsense. So
I'd think `IntegerModRing(16,category=Fields())` should produce an error.
--
Ticket URL: <http://trac.sagemath.org/ticket/15223#comment:19>
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.
For more options, visit https://groups.google.com/groups/opt_out.