Skip to content

Commit

Permalink
Fix test_pda
Browse files Browse the repository at this point in the history
  • Loading branch information
LRossman committed Jun 25, 2024
1 parent a9140b3 commit c45f290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c45f290

Please sign in to comment.