Merge pull request #2786 from daniepin/completed_cells-refactor

Refactored ScheduleGrid to use public struct cell
This commit is contained in:
Joakim Hove
2021-10-30 17:10:32 +02:00
committed by GitHub
7 changed files with 17 additions and 50 deletions

View File

@@ -4813,13 +4813,13 @@ BOOST_AUTO_TEST_CASE(TestScheduleGrid) {
{
ScheduleGrid sched_grid(grid, cells);
auto depth = sched_grid.getCellDepth(1,1,1);
auto depth = sched_grid.get_cell(1,1,1).depth;
BOOST_CHECK_EQUAL(depth, 1.50);
}
{
ScheduleGrid sched_grid(cells);
auto depth = sched_grid.getCellDepth(1,1,1);
auto depth = sched_grid.get_cell(1,1,1).depth;
BOOST_CHECK_EQUAL(depth, 1.50);
BOOST_CHECK_THROW(sched_grid.getCellDepth(2,2,2), std::exception);
BOOST_CHECK_THROW(sched_grid.get_cell(2,2,2), std::exception);
}
}