Adding element id validity checks

This commit is contained in:
Michael Tryby
2019-04-16 16:57:38 -04:00
parent ea8e0439e3
commit 22a7993c8c
9 changed files with 93 additions and 9 deletions

View File

@@ -66,4 +66,21 @@ BOOST_FIXTURE_TEST_CASE(test_curve_comments, FixtureOpenClose)
}
}
BOOST_FIXTURE_TEST_CASE(test_curve_id_isvalid, FixtureInitClose)
{
error = EN_addcurve(ph, "C1");
BOOST_REQUIRE(error == 0);
error = EN_addcurve(ph, "C 2");
BOOST_REQUIRE(error == 250);
error = EN_addcurve(ph, "C\"2");
BOOST_REQUIRE(error == 250);
error = EN_addcurve(ph, "C;2");
BOOST_REQUIRE(error == 250);
}
BOOST_AUTO_TEST_SUITE_END()