From c45f2901ab790c2e1af06a1d274b042e9ae2f04d Mon Sep 17 00:00:00 2001 From: Lew Rossman Date: Tue, 25 Jun 2024 19:49:14 -0400 Subject: [PATCH] Fix test_pda --- tests/test_pda.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pda.cpp b/tests/test_pda.cpp index 6091def7..ad8c23af 100644 --- a/tests/test_pda.cpp +++ b/tests/test_pda.cpp @@ -75,12 +75,12 @@ BOOST_AUTO_TEST_CASE(test_pda_model) BOOST_REQUIRE(error == 0); BOOST_REQUIRE(abs(reduction) < 0.01); - // Check that Junction 21 had a demand deficit of 413.67 + // Check that Junction 21 had a demand deficit of 27.58% error = EN_getnodeindex(ph, (char *)"21", &index); BOOST_REQUIRE(error == 0); error = EN_getnodevalue(ph, index, EN_DEMANDDEFICIT, &reduction); BOOST_REQUIRE(error == 0); - BOOST_REQUIRE(abs(reduction - 413.67) < 0.01); + BOOST_REQUIRE(abs(reduction - 27.58) < 0.01); // Clean up error = EN_close(ph);