Adding element id validity check

Adding checks for element set id functions
This commit is contained in:
Michael Tryby
2019-04-16 17:29:32 -04:00
parent 22a7993c8c
commit 3186ec326c
5 changed files with 41 additions and 7 deletions

View File

@@ -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);
}