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

Commit

Permalink
add a test in the docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
LaisRast committed Oct 29, 2019
1 parent ae40381 commit 632a2d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sage/geometry/polyhedron/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,14 @@ def dim(self):
[-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3]
TESTS::
Check that :trac:`28650` is fixed::
sage: P = Polyhedron(vertices=[[1,0]], rays=[[1,0],[0,1]])
sage: P.faces(2)
(A 2-dimensional face of a Polyhedron in QQ^2 defined as the convex hull of 1 vertex and 2 rays,)
"""
if self.n_ambient_Vrepresentation() == 0:
return -1
Expand Down

0 comments on commit 632a2d9

Please sign in to comment.