Adding element id validity check
Adding checks for element set id functions
This commit is contained in:
@@ -69,6 +69,8 @@ BOOST_FIXTURE_TEST_CASE(test_curve_comments, FixtureOpenClose)
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE(test_curve_id_isvalid, FixtureInitClose)
|
||||
{
|
||||
int index;
|
||||
|
||||
error = EN_addcurve(ph, "C1");
|
||||
BOOST_REQUIRE(error == 0);
|
||||
|
||||
@@ -80,6 +82,10 @@ BOOST_FIXTURE_TEST_CASE(test_curve_id_isvalid, FixtureInitClose)
|
||||
|
||||
error = EN_addcurve(ph, "C;2");
|
||||
BOOST_REQUIRE(error == 250);
|
||||
|
||||
EN_getcurveindex(ph, "C1", &index);
|
||||
error = EN_setcurveid(ph, index, "C;2");
|
||||
BOOST_REQUIRE(error == 250);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user