Refactor type arguments to compute cell_index

This commit is contained in:
Alex Selimov 2025-09-25 20:06:29 -04:00
parent d957a90573
commit cd4a00ebed
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
2 changed files with 6 additions and 3 deletions

View file

@ -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);
}