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

Commit

Permalink
fix random test in geometry/linear_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jun 24, 2020
1 parent 0e7a998 commit b6a5dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/geometry/linear_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,10 @@ def random_element(self):
sage: from sage.geometry.linear_expression import LinearExpressionModule
sage: L.<x,y,z> = LinearExpressionModule(QQ)
sage: L.random_element()
sage: a = L.random_element(); a # random
-1/2*x - 1/95*y + 1/2*z - 12
sage: a in L
True
"""
A = self.ambient_module().random_element()
b = self.base_ring().random_element()
Expand Down

0 comments on commit b6a5dc7

Please sign in to comment.