Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jul 11, 2020
1 parent 445beef commit 8038412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/algebras/quatalg/quaternion_algebra.py
Expand Up @@ -536,13 +536,13 @@ def random_element(self, *args, **kwds):
sage: g = QuaternionAlgebra(-3,19).random_element(10^6, 10^6)
sage: for h in g:
....: assert h.denominator() in range(-10^6, 10^6 + 1)
....: assert h.numerator() in range(-10^6, 10^6 + 1)
....: assert h.denominator() in range(10^6 + 1)
sage: g = QuaternionAlgebra(-3,19).random_element(5, 4)
sage: for h in g:
....: assert h.denominator() in range(-5, 5 + 1)
....: assert h.numerator() in range(-4, 4 + 1)
....: assert h.numerator() in range(-5, 5 + 1)
....: assert h.denominator() in range(4 + 1)
"""
K = self.base_ring()
return self([K.random_element(*args, **kwds) for _ in range(4)])
Expand Down

0 comments on commit 8038412

Please sign in to comment.