Skip to content

Commit

Permalink
pass through tol
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Nov 8, 2024
1 parent 31bc0fa commit befa071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/shared_test/lib_battery_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static void compareState(std::unique_ptr<battery_t>&model, const battery_state_t
auto tested_state = model->get_state();
compareState(*tested_state.capacity, expected_state.capacity, msg, tol);

EXPECT_NEAR(tested_state.V, expected_state.batt_voltage, 0.01) << msg;
EXPECT_NEAR(tested_state.V, expected_state.batt_voltage, tol) << msg;

auto lifetime_tested = tested_state.lifetime;
auto lifetime_expected = expected_state.lifetime;
Expand Down

0 comments on commit befa071

Please sign in to comment.