]> gitweb.michael.orlitzky.com - sage.d.git/commit
cone/rearrangement.py: add a few more tests.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 12 Nov 2018 02:59:29 +0000 (21:59 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 12 Nov 2018 02:59:29 +0000 (21:59 -0500)
commitd6b360ff88d5c1b0e7d29a06bd85d0dcc1e6eac9
tree53bf7c76f4ae4e8be236dfa054bdf0cf0b1e7b98
parent32c747addd3211f625525378fdbb10e2ebbbd5ef
cone/rearrangement.py: add a few more tests.

Add a few more tests to the rearrangement_cone() function. In
particular, delete the has_rearrangement_property() function since it
only served to test the rearrangement cone. The property tests were
moved into the cone doctests.

The cone constructor now also checks that "p" is within bounds, and
throws a ValueError if not. There are tests for this too.
mjo/cone/rearrangement.py