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

Commit

Permalink
use test suite to check precomputed data
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Aug 11, 2020
1 parent 1bfcf5d commit 577e736
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/geometry/polyhedron/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -2541,8 +2541,7 @@ def permutahedron(self, n, project=False, backend=None):
Check that precomputed data is correct::
sage: P = polytopes.permutahedron(5, backend='field')
sage: assert P == Polyhedron(P.vertices())
sage: assert P == Polyhedron(ieqs=P.inequalities(), eqns=P.equations())
sage: TestSuite(P).run() # long time
"""
verts = itertools.permutations(range(1, n + 1))
if project:
Expand Down

0 comments on commit 577e736

Please sign in to comment.