From 6b0e421a39c137f59a774ea1d20917567c6f3bab Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Thu, 18 Apr 2019 07:39:39 -0400 Subject: [PATCH] Update test_node.cpp --- tests/test_node.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_node.cpp b/tests/test_node.cpp index e7139ae..4912c87 100644 --- a/tests/test_node.cpp +++ b/tests/test_node.cpp @@ -23,9 +23,9 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_node, FixtureInitClose) { int index; - error = EN_addnode(ph, (char *)"N2", EN_JUNCTION); + error = EN_addnode(ph, (char *)"N2", EN_JUNCTION, &index); BOOST_REQUIRE(error == 0); - error = EN_addnode(ph, (char *)"N3", EN_RESERVOIR); + error = EN_addnode(ph, (char *)"N3", EN_RESERVOIR, &index); BOOST_REQUIRE(error == 0); error = EN_getnodeindex(ph, (char *)"N2", &index); @@ -33,7 +33,7 @@ BOOST_FIXTURE_TEST_CASE(test_adddelete_node, FixtureInitClose) error = EN_deletenode(ph, index, EN_UNCONDITIONAL); BOOST_REQUIRE(error == 0); - error = EN_addnode(ph, (char *)"N4", EN_TANK); + error = EN_addnode(ph, (char *)"N4", EN_TANK, &index); BOOST_REQUIRE(error == 0); error = EN_getnodeindex(ph, (char *)"N4", &index); @@ -51,16 +51,16 @@ BOOST_FIXTURE_TEST_CASE(test_node_validate_id, FixtureInitClose) { int index; - error = EN_addnode(ph, (char *)"N2", EN_JUNCTION); + error = EN_addnode(ph, (char *)"N2", EN_JUNCTION, &index); BOOST_REQUIRE(error == 0); - error = EN_addnode(ph, (char *)"N 3", EN_JUNCTION); + error = EN_addnode(ph, (char *)"N 3", EN_JUNCTION, &index); BOOST_REQUIRE(error == 252); - error = EN_addnode(ph, (char *)"N\"3", EN_JUNCTION); + error = EN_addnode(ph, (char *)"N\"3", EN_JUNCTION, &index); BOOST_REQUIRE(error == 252); - error = EN_addnode(ph, (char *)"N;3", EN_JUNCTION); + error = EN_addnode(ph, (char *)"N;3", EN_JUNCTION, &index); BOOST_REQUIRE(error == 252); EN_getnodeindex(ph, (char *)"N2", &index);