Skip to content

Commit

Permalink
Trac #29963: Make geometry doctests ready for random seeds
Browse files Browse the repository at this point in the history
This ticket makes
{{{
sage -t --long --random-seed=n src/sage/geometry/
}}}
pass for different values `n` than just `0` except for
`src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py`, which will
be taken care of by #29936.

URL: https://trac.sagemath.org/29963
Reported by: gh-kliem
Ticket author(s): Jonathan Kliem
Reviewer(s): Sébastien Labbé
  • Loading branch information
Release Manager committed Aug 16, 2020
2 parents 719f9af + f7dc36b commit b526019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/sage/geometry/hyperbolic_space/hyperbolic_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ def symmetry_involution(self):
sage: p = HyperbolicPlane().UHP().random_element()
sage: A = p.symmetry_involution()
sage: A*p == p
True
sage: p.dist(A*p) # abs tol 1e-10
0
sage: A.preserves_orientation()
True
Expand Down
4 changes: 2 additions & 2 deletions src/sage/geometry/linear_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ def random_element(self):
sage: from sage.geometry.linear_expression import LinearExpressionModule
sage: L.<x,y,z> = LinearExpressionModule(QQ)
sage: L.random_element()
-1/2*x - 1/95*y + 1/2*z - 12
sage: L.random_element() in L
True
"""
A = self.ambient_module().random_element()
b = self.base_ring().random_element()
Expand Down

0 comments on commit b526019

Please sign in to comment.