-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #16680: Improve handling of "algorithm" parameter in EllipticCur…
…ve_finite_field.cardinality() The following doctest in `ell_finite_field.py` can fail (by returning a cached result) because the same curve is used in an earlier doctest and may be cached by the `UniqueFactory` from #11474: {{{ sage: EllipticCurve(GF(10007),[1,2,3,4,5]).cardinality(algorithm='foobar') Traceback (most recent call last): ... ValueError: Algorithm is not known }}} A trivial solution is to use a different curve for this test. This ticket also makes the handling of the `algorithm` parameter more consistent and polishes the documentation a bit. URL: http://trac.sagemath.org/16680 Reported by: pbruin Ticket author(s): Peter Bruin, Travis Scrimshaw Reviewer(s): Travis Scrimshaw, Peter Bruin
- Loading branch information
Showing
1 changed file
with
47 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters