Update errror code from 250 to 252

This commit is contained in:
Michael Tryby
2019-04-17 09:39:24 -04:00
parent f161ecaa72
commit d1979e7ed0
7 changed files with 28 additions and 25 deletions

View File

@@ -75,17 +75,17 @@ BOOST_FIXTURE_TEST_CASE(test_curve_id_isvalid, FixtureInitClose)
BOOST_REQUIRE(error == 0);
error = EN_addcurve(ph, (char *)"C 2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addcurve(ph, (char *)"C\"2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addcurve(ph, (char *)"C;2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
EN_getcurveindex(ph, (char *)"C1", &index);
error = EN_setcurveid(ph, index, (char *)"C;2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
}

View File

@@ -68,17 +68,17 @@ BOOST_FIXTURE_TEST_CASE(test_link_id_isvalid, FixtureInitClose)
BOOST_REQUIRE(error == 0);
error = EN_addlink(ph, (char *)"L 2", EN_PIPE, (char *)"N1", (char *)"N2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addlink(ph, (char *)"L\"2", EN_PIPE, (char *)"N1", (char *)"N2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addlink(ph, (char *)"L;2", EN_PIPE, (char *)"N1", (char *)"N2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
EN_getlinkindex(ph, (char *)"L1", &index);
error = EN_setlinkid(ph, index, (char *)"L;1");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
}
BOOST_AUTO_TEST_CASE(test_setlinktype)

View File

@@ -55,17 +55,17 @@ BOOST_FIXTURE_TEST_CASE(test_node_validate_id, FixtureInitClose)
BOOST_REQUIRE(error == 0);
error = EN_addnode(ph, (char *)"N 3", EN_JUNCTION);
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addnode(ph, (char *)"N\"3", EN_JUNCTION);
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addnode(ph, (char *)"N;3", EN_JUNCTION);
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
EN_getnodeindex(ph, (char *)"N2", &index);
error = EN_setnodeid(ph, index, (char *)"N;2");
BOOST_REQUIRE(error = 250);
BOOST_REQUIRE(error = 252);
}

View File

@@ -155,17 +155,17 @@ BOOST_FIXTURE_TEST_CASE(test_pat_id_isvalid, FixtureInitClose)
BOOST_REQUIRE(error == 0);
error = EN_addpattern(ph, (char *)"P 2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addpattern(ph, (char *)"P\"2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
error = EN_addpattern(ph, (char *)"P;2");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
EN_getpatternindex(ph, (char *)"P1", &index);
error = EN_setpatternid(ph, index, (char *)"P;1");
BOOST_REQUIRE(error == 250);
BOOST_REQUIRE(error == 252);
}