diff --git a/tests/outfile/data/enP1kAlM b/tests/outfile/data/enP1kAlM new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_link.cpp b/tests/test_link.cpp index b645ab6..3f91167 100644 --- a/tests/test_link.cpp +++ b/tests/test_link.cpp @@ -36,7 +36,7 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_link, FixtureInitClose) error = EN_addlink(ph, (char *)"L2", EN_PIPE, (char *)"N1", (char *)"N3"); BOOST_REQUIRE(error == 0); - error = EN_getlinkindex(ph, "L2", &index); + error = EN_getlinkindex(ph, (char *)"L2", &index); BOOST_REQUIRE(error == 0); error = EN_deletelink(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); @@ -44,11 +44,11 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_link, FixtureInitClose) error = EN_addlink(ph, (char *)"L3", EN_PIPE, (char *)"N1", (char *)"N2"); BOOST_REQUIRE(error == 0); - error = EN_getlinkindex(ph, "L1", &index); + error = EN_getlinkindex(ph, (char *)"L1", &index); BOOST_REQUIRE(error == 0); error = EN_deletelink(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); - error = EN_getlinkindex(ph, "L3", &index); + error = EN_getlinkindex(ph, (char *)"L3", &index); BOOST_REQUIRE(error == 0); error = EN_deletelink(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); diff --git a/tests/test_node.cpp b/tests/test_node.cpp index 058fc77..d0642ea 100644 --- a/tests/test_node.cpp +++ b/tests/test_node.cpp @@ -28,7 +28,7 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_node, FixtureInitClose) error = EN_addnode(ph, (char *)"N3", EN_RESERVOIR); BOOST_REQUIRE(error == 0); - error = EN_getnodeindex(ph, "N2", &index); + error = EN_getnodeindex(ph, (char *)"N2", &index); BOOST_REQUIRE(error == 0); error = EN_deletenode(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); @@ -36,11 +36,11 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_node, FixtureInitClose) error = EN_addnode(ph, (char *)"N4", EN_TANK); BOOST_REQUIRE(error == 0); - error = EN_getnodeindex(ph, "N4", &index); + error = EN_getnodeindex(ph, (char *)"N4", &index); BOOST_REQUIRE(error == 0); error = EN_deletenode(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); - error = EN_getnodeindex(ph, "N3", &index); + error = EN_getnodeindex(ph, (char *)"N3", &index); BOOST_REQUIRE(error == 0); error = EN_deletenode(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0);