Skip to content

Commit 63e441b

Browse files
committed
shorter test
1 parent 3e0cf5c commit 63e441b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sage/algebras/quatalg/quaternion_algebra.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,10 @@ def maximal_order(self, take_shortcuts=True, order_basis=None):
955955
Order of Quaternion Algebra (-22, 210) with base ring Rational Field
956956
with basis (1, i, 1/2*i + 1/2*j, 1/2 + 17/22*i + 1/44*k)
957957
958-
sage: for d in range(1, 700): # long time (3s)
959-
....: if not is_squarefree(d):
960-
....: continue
961-
....: A = QuaternionAlgebra(d)
962-
....: assert A.maximal_order(take_shortcuts=False).is_maximal()
958+
sage: Q = QuaternionAlgebra
959+
sage: all(Q(d).maximal_order(take_shortcuts=False).is_maximal()
960+
....: for d in range(1, 350) if is_squarefree(d))
961+
True
963962
964963
Specifying an order basis gives an extension of orders::
965964

0 commit comments

Comments
 (0)