Refactor type arguments to compute cell_index
This commit is contained in:
parent
d957a90573
commit
cd4a00ebed
2 changed files with 6 additions and 3 deletions
|
@ -27,5 +27,6 @@ TEST(CellListTest, GetCellIndex) {
|
|||
int expected_index = z * cell_list.grid_size.x * cell_list.grid_size.y +
|
||||
y * cell_list.grid_size.x + x;
|
||||
|
||||
EXPECT_EQ(cell_list.get_cell_index(x, y, z), expected_index);
|
||||
EXPECT_EQ(cell_list.get_cell_index_from_cell_coords({x, y, z}),
|
||||
expected_index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue