Skip to content

Commit

Permalink
Fix test failure on 32-bit where a different element is picked
Browse files Browse the repository at this point in the history
  • Loading branch information
vbraun committed Jun 3, 2024
1 parent e5f42fa commit 6951817
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/geometry/polyhedral_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,11 @@ def _an_element_(self):
sage: pc = PolyhedralComplex([
....: Polyhedron(vertices=[(1/3, 1/3), (0, 0), (1, 2)]),
....: Polyhedron(vertices=[(1, 2), (0, 0), (0, 1/2)])])
sage: pc._an_element_().vertices_list()
sage: element = pc._an_element_().vertices_list()
sage: element # random output (one of the two maximal cells)
[[0, 0], [0, 1/2], [1, 2]]
sage: element in ([[0, 0], [0, 1/2], [1, 2]], [[0, 0], [1/3, 1/3], [1, 2]])
True
"""
try:
return next(self.maximal_cell_iterator(increasing=False))
Expand Down

0 comments on commit 6951817

Please sign in to comment.