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

Commit

Permalink
Trac #18454: Set max_dim on a random_cone() test that could run forever.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky committed Jul 12, 2015
1 parent 44ac645 commit 909997a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/geometry/cone.py
Expand Up @@ -4245,10 +4245,12 @@ def random_cone(lattice=None, min_dim=0, max_dim=None, min_rays=0,
TESTS:
It's hard to test the output of a random process, but we can at
least make sure that we get a cone back::
least make sure that we get a cone back. To prevent this test
from running forever, we unfortunately have to pass the function
a parameter.
sage: from sage.geometry.cone import is_Cone # long time
sage: K = random_cone() # long time
sage: K = random_cone(max_dim=20) # long time
sage: is_Cone(K) # long time
True
Expand Down

0 comments on commit 909997a

Please sign in to comment.