Skip to content

Commit

Permalink
Test parameter genericNames
Browse files Browse the repository at this point in the history
  • Loading branch information
hedtke committed Oct 13, 2023
1 parent 5510574 commit eb51e4f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ BOOST_AUTO_TEST_CASE(FileLP)
BOOST_TEST(contains(content, "Minimize"));
}

BOOST_AUTO_TEST_CASE(FileLPGenericNames)
{
auto model { createModel() };

TempFile tf("lp");
model.writeOrigProblem(tf.path(), true);
BOOST_TEST(model.getLastReturnCode() == SCIP_OKAY);
auto content { tf.content() };
BOOST_TEST(contains(content, "Obj: +1 x0 +1 x1"));
BOOST_TEST(contains(content, "c0:"));
BOOST_TEST(contains(content, "c1:"));
BOOST_TEST(contains(content, "Minimize"));
}

BOOST_AUTO_TEST_CASE(FileMPS)
{
auto model { createModel() };
Expand Down

0 comments on commit eb51e4f

Please sign in to comment.