Skip to content

Commit

Permalink
src/sage/geometry/lattice_polytope.py: Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Nov 22, 2023
1 parent c05ab9e commit 0bd2a93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/geometry/lattice_polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -3184,6 +3184,13 @@ def normal_form(self, algorithm="palp_native", permutation=False):
10 loops, best of 3: 0.137 s per loop
sage: %timeit P.normal_form.clear_cache(); P.normal_form("palp_modified") # not tested
10 loops, best of 3: 22.2 s per loop
TESTS::
sage: d.normal_form("palp_fiction")
Traceback (most recent call last):
...
ValueError: algorithm must be 'palp', 'palp_native', or 'palp_modified'
"""
if self.dim() < self.lattice_dim():
raise ValueError("normal form is not defined for %s" % self)
Expand Down

0 comments on commit 0bd2a93

Please sign in to comment.