Skip to content

Commit e8b01fa

Browse files
committed
fixing test errors for CI
1 parent 6bfcfcb commit e8b01fa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/integration/respond_test.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created Date: 2026-02-06 //
55
// Author: Matthew Carroll //
66
// ----- //
7-
// Last Modified: 2026-02-12 //
7+
// Last Modified: 2026-02-13 //
88
// Modified By: Matthew Carroll //
99
// ----- //
1010
// Copyright (c) 2026 Syndemics Lab at Boston Medical Center //
@@ -119,11 +119,13 @@ TEST_F(RespondTest, RunSimulationOneStep) {
119119
}
120120

121121
auto state_history = mm_histories.at("state");
122-
ASSERT_EQ(state_history.size(), 1);
122+
// 2 because it carries the initial state and 1 step
123+
ASSERT_EQ(state_history.size(), 2);
123124

124125
Eigen::Vector3d final_state;
126+
ASSERT_TRUE(state_history[0].isApprox(init_state));
125127
final_state << 0.76715528791564891, 0.72320370216816077, 1.037712429738102;
126-
ASSERT_TRUE(state_history[0].isApprox(final_state));
128+
ASSERT_TRUE(state_history[1].isApprox(final_state));
127129
}
128130

129131
TEST_F(RespondTest, CreateDefaultHistories) {

0 commit comments

Comments
 (0)