-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of macros, use fixtures for XPRESS tests #119
Conversation
Maybe you can use SetUp() instead of constructor in fixture, that way you can call it multiple time (see google doc) |
According to this source, constructor/destructor should be used whenever possible. |
then maybe, if possible, add a protected reset() method that resets the MIP ? |
For every test, an |
I meant, a reset() method would maybe help to solve the loop issue |
a50778b
to
a7bf7ad
Compare
@pet-mit Since this was only used 3 times (3 for loops), I just copy-pasted the 2 lines of codes each time. I hope the elimination of macros will make it up for this code duplication. Alternatively, I can keep the |
a7bf7ad
to
9f490be
Compare
Only difficulty :
UNITTEST_INIT_MIP()
is used in loops, e.gThis has been dealt with by replacing the macro with it's content in each of the 3 loops.