#20323: Common TestSuite for MIP backends
-------------------------------------+-------------------------------------
Reporter: mkoeppe | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-7.2
Component: numerical | Resolution:
Keywords: lp | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/mkoeppe/common_testsuite_for_mip_backends|
94a4ac546369b8b12d36635e2c74d7113420b144
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by mkoeppe):
Replying to [comment:23 vdelecroix]:
> Some remarks before looking once more at the code:
>
> - It would actually be interesting for the tests to have access to the
objects. They are non trivially initialized (maximization vs minimization,
constraints, etc). Using them as a base (with copy) each test suite would
actually run different tests.
If one wants to write such a test, one can just remove the @classmethod
decorator. This makes indeed sense for the various getter methods. As an
example, I have just added the following test method:
{{{
def _test_ncols_nonnegative(self, **options):
tester = self._tester(**options)
p = self
tester.assertGreaterEqual(self.ncols(), 0)
}}}
> - This approach does not allow to cross check the backends (?).
The idea is that all backends are checked against the same set of tests.
(In contrast to the current doctests, in which each backend decides by
copy-paste what is convenient to be tested.)
I plan to distill a good set of tests by means of #20376 from the existing
doctests of the various backends.
--
Ticket URL: <http://trac.sagemath.org/ticket/20323#comment:25>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.