File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
129131TEST_F (RespondTest, CreateDefaultHistories) {
You can’t perform that action at this time.
0 commit comments