Add month_num and year_num members to ScheduleState

This commit is contained in:
Joakim Hove
2021-03-10 09:26:02 +01:00
parent 34ddba52d7
commit b151c85f6c
3 changed files with 39 additions and 0 deletions

View File

@@ -142,6 +142,12 @@ END
BOOST_CHECK_MESSAGE(sched.write_rst_file(stepID),
"Must write restart information for included step " << stepID);
}
std::vector<std::size_t> month_num{ 0,0,0,0,0, 1, 1, 2, 3, 4, 5, 6, 7, 10, 12, 17, 17, 18, 18 };
for (std::size_t index = 0; index < sched.size(); index++) {
const auto& state = sched[index];
BOOST_CHECK_EQUAL( state.month_num(), month_num[index] );
}
}