debug test_pda.cpp
This commit is contained in:
@@ -79,6 +79,9 @@ BOOST_AUTO_TEST_CASE(test_pda_model)
|
|||||||
error = EN_getnodeindex(ph, (char *)"21", &index);
|
error = EN_getnodeindex(ph, (char *)"21", &index);
|
||||||
BOOST_REQUIRE(error == 0);
|
BOOST_REQUIRE(error == 0);
|
||||||
error = EN_getnodevalue(ph, index, EN_DEMANDDEFICIT, &reduction);
|
error = EN_getnodevalue(ph, index, EN_DEMANDDEFICIT, &reduction);
|
||||||
|
|
||||||
|
printf("\nreduction = %f", reduction);
|
||||||
|
|
||||||
BOOST_REQUIRE(error == 0);
|
BOOST_REQUIRE(error == 0);
|
||||||
BOOST_REQUIRE(abs(reduction - 413.67) < 0.01);
|
BOOST_REQUIRE(abs(reduction - 413.67) < 0.01);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user