Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Features/constraint tests #73
I added a draft how to test constraints built by a specific class. I do not know if it is a smart way, so I would like to get some feedback.
I create an isolated object, build the constraints, write out an lp-file and compare it with an existing lp-file.
As an example a add tests for a simple transformer and a fixed source.
There is also a possibility to compare the output of the blocks using the method
Therefore I created separate methods. These methods could return the block and then it is possible to check the block within the tests. I do not know if this is necessary if we have the lp-file-tests.