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

Commit

Permalink
added doctest reporting the bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Jul 11, 2019
1 parent d6d663a commit 14d17a8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,26 @@ cdef class CombinatorialPolyhedron(SageObject):
sage: C.vertices()
()
TESTS::
TESTS:
Checking that #27987 is fixed::
sage: P1 = Polyhedron(vertices=[[0,1],[1,0]], rays=[[1,1]])
sage: P2 = Polyhedron(vertices=[[0,1],[1,0],[1,1]])
sage: P1.incidence_matrix() == P2.incidence_matrix()
True
sage: CombinatorialPolyhedron(P1).f_vector()
(1, 2, 3, 1)
sage: CombinatorialPolyhedron(P2).f_vector()
(1, 3, 3, 1)
sage: P1 = Polyhedron(vertices=[[0,1],[1,0]], rays=[[1,1]])
sage: P2 = Polyhedron(vertices=[[0,1],[1,0],[1,1]])
sage: CombinatorialPolyhedron(P1).f_vector()
(1, 2, 3, 1)
sage: CombinatorialPolyhedron(P2).f_vector()
(1, 3, 3, 1)
Some other tests regaring small polyhedra::
sage: P = Polyhedron(rays=[[1,0],[0,1]])
sage: C = CombinatorialPolyhedron(P)
Expand Down Expand Up @@ -252,6 +271,8 @@ cdef class CombinatorialPolyhedron(SageObject):
(A vertex at (0, 0),)
sage: CombinatorialPolyhedron(3r)
A 3-dimensional combinatorial polyhedron with 0 facets
"""
def __init__(self, data, Vrepr=None, facets=None, unbounded=False, far_face=None):
r"""
Expand Down

0 comments on commit 14d17a8

Please sign in to comment.