Skip to content

Commit

Permalink
fix doc syntax in quaternion_algebra.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton authored Jan 30, 2024
1 parent acdb7cc commit 09d352e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/algebras/quatalg/quaternion_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -3110,9 +3110,9 @@ def primitive_decomposition(self):
sage: Jequiv, g
(Fractional ideal (1/2 + 1/2*i + 7/2*j + 13/2*k, i + 3*k, 5*j + 5*k, 10*k), 7)
TESTS::
TESTS:
Checks on random crafted ideals that they decompose as expected.
Checks on random crafted ideals that they decompose as expected::
sage: for d in ( m for m in range(400, 750) if is_squarefree(m) ):
....: A = QuaternionAlgebra(d)
Expand All @@ -3125,9 +3125,7 @@ def primitive_decomposition(self):
....: J,g = I.primitive_decomposition()
....: assert J*g == I
....: assert J.is_primitive()
"""

if not self.is_integral():
raise ValueError("primitive ideals are defined only for integral ideals")

Check warning on line 3130 in src/sage/algebras/quatalg/quaternion_algebra.py

View check run for this annotation

Codecov / codecov/patch

src/sage/algebras/quatalg/quaternion_algebra.py#L3130

Added line #L3130 was not covered by tests

Expand Down

0 comments on commit 09d352e

Please sign in to comment.