Skip to content

Commit c5828ca

Browse files
committed
Turn some doctests into long tests
1 parent 7726cd9 commit c5828ca

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/sage/schemes/elliptic_curves/ell_rational_field.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def mwrank(self, options=''):
441441
EXAMPLES::
442442
443443
sage: E = EllipticCurve('37a1')
444-
sage: E.mwrank() #random
444+
sage: E.mwrank() # random
445445
...
446446
sage: print(E.mwrank())
447447
Curve [0,0,1,-1,0] : Basic pair: I=48, J=-432
@@ -2316,7 +2316,7 @@ def gens(self, proof=None, **kwds):
23162316
over Rational Field
23172317
sage: E1.gens() # random (if database not used)
23182318
[(-400 : 8000 : 1), (0 : -8000 : 1)]
2319-
sage: E1.gens(algorithm='pari') #random
2319+
sage: E1.gens(algorithm='pari') # random
23202320
[(-400 : 8000 : 1), (0 : -8000 : 1)]
23212321
23222322
TESTS::
@@ -2334,6 +2334,13 @@ def gens(self, proof=None, **kwds):
23342334
sage: P = E.lift_x(10/9)
23352335
sage: set(E.gens()) <= set([P,-P])
23362336
True
2337+
2338+
Check that :issue:`38813` has been fixed:
2339+
2340+
sage: set_random_seed(91390048253425197917505296851335255685)
2341+
sage: E = EllipticCurve([-127^2,0])
2342+
sage: E.gens(use_database=False, algorithm='pari', pari_effort=4) # long time
2343+
[(611429153205013185025/9492121848205441 : 15118836457596902442737698070880/924793900700594415341761 : 1)]
23372344
"""
23382345
if proof is None:
23392346
from sage.structure.proof.proof import get_flag
@@ -2386,15 +2393,16 @@ def _compute_gens(self, proof,
23862393
True
23872394
23882395
sage: E = EllipticCurve([-127^2,0])
2389-
sage: E.gens(use_database=False, algorithm='pari',pari_effort=4) # random
2396+
sage: E.gens(use_database=False, algorithm='pari', pari_effort=4) # long time, random
23902397
[(611429153205013185025/9492121848205441 : 15118836457596902442737698070880/924793900700594415341761 : 1)]
23912398
23922399
TESTS::
23932400
2401+
sage: E = EllipticCurve([-127^2,0])
23942402
sage: P = E.lift_x(611429153205013185025/9492121848205441)
2395-
sage: ge = set(E.gens(use_database=False, algorithm='pari',pari_effort=4))
2396-
sage: ge <= set([P+T for T in E.torsion_points()]
2397-
....: + [-P+T for T in E.torsion_points()])
2403+
sage: (set(E.gens(use_database=False, algorithm='pari', pari_effort=4)) # long time
2404+
....: <= set([P+T for T in E.torsion_points()]
2405+
....: + [-P+T for T in E.torsion_points()]))
23982406
True
23992407
"""
24002408
# If the optional extended database is installed and an

0 commit comments

Comments
 (0)