Skip to content

Commit

Permalink
update battery tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Apr 30, 2024
1 parent 1ea78b8 commit ce16060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/shared_test/lib_battery_test.cpp
Expand Up @@ -361,7 +361,7 @@ TEST_F(lib_battery_test, runTestCycleAt3C){
// std::cerr << idx << ": soc " << batteryModel->SOC() << ", cap " << capacity_passed << "\n";
// the SOC isn't at 5 so it means the controller is not able to calculate a current/voltage at which to discharge to 5
s.capacity = { 47.09, 920.30, 883.49, 9.08, 0, 5.33, 6.36, 2};
s.batt_voltage = 467.09;
s.batt_voltage = 467.106;
s.lifetime.q_relative = 93.08;
s.lifetime.day_age_of_battery = 2591.17;
s.lifetime.cycle->q_relative_cycle = 92.08;
Expand Down
2 changes: 1 addition & 1 deletion test/ssc_test/cmod_battwatts_test.cpp
Expand Up @@ -180,5 +180,5 @@ TEST_F(CMBattwatts_cmod_battwatts, NoPV) {

auto cycles = data.as_vector_ssc_number_t("batt_cycles");
ssc_number_t maxCycles = *std::max_element(cycles.begin(), cycles.end());
EXPECT_NEAR(maxCycles, 522, 0.1);
EXPECT_NEAR(maxCycles, 522, 3);
}

0 comments on commit ce16060

Please sign in to comment.