debug test_pda.cpp

This commit is contained in:
Lew Rossman
2024-06-26 11:47:35 -04:00
parent 037ca41af6
commit 30a3fcb4b9

View File

@@ -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);