rethinking the python wrapper (#511)
* renames certain function parameter declarations and removes double pointer call from the deleteproject function * deprecates conditonal compilation, removes python-specific headers and function renaming * fixes tests and docs * fixes test
This commit is contained in:
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(test_categories_save)
|
||||
|
||||
error = EN_close(ph);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
error = EN_deleteproject(&ph);
|
||||
error = EN_deleteproject(ph);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(test_categories_reopen, * boost::unit_test::depends_on("tes
|
||||
|
||||
error = EN_close(ph);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
error = EN_deleteproject(&ph);
|
||||
error = EN_deleteproject(ph);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
}
|
||||
|
||||
@@ -106,10 +106,10 @@ BOOST_FIXTURE_TEST_CASE(test_adddemand, FixtureSingleNode)
|
||||
|
||||
error = EN_adddemand(ph, node_qhut, 1.0, "TertiaryPattern", "TertiaryDemand");
|
||||
BOOST_CHECK(error == 0);
|
||||
|
||||
|
||||
error = EN_getnumdemands(ph, node_qhut, &nD1);
|
||||
BOOST_REQUIRE(error == 0);
|
||||
|
||||
|
||||
error = EN_getdemandindex(ph, node_qhut, "TertiaryDemand", &Dindex);
|
||||
BOOST_CHECK(error == 0);
|
||||
BOOST_CHECK(Dindex == nD1);
|
||||
|
||||
Reference in New Issue
Block a user