-
-
Notifications
You must be signed in to change notification settings - Fork 660
Closed
Description
After this patch, IntegerModRing's inherit properly from categories:
sage: Z3 = IntegerModRing(3)
sage: Z3.category()
Category of commutative rings
sage: TestSuite(Z3).run(verbose = True)
running ._test_additive_associativity() . . . pass
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
running ._test_zero() . . . pass
And this makes the cool features from #7555 work for Z/nZ.
Potential conflict with #8218 (which has higher priority)
For a later ticket, see: running design discussion on:
http://groups.google.com/group/sage-devel/t/21e21e1ec9cd21fe
CC: @sagetrac-sage-combinat
Component: algebra
Keywords: integer mod rings
Author: Nicolas M. Thiéry
Reviewer: John Palmieri, Rob Beezer
Merged: sage-4.5.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8562