| 13 | }; |
| 14 | |
| 15 | TEST_F(VoxelVolumeAttributeTest, Positivity) { |
| 16 | MeshPtr cube_tet = load_mesh("cube.msh"); |
| 17 | ASSERT_TRUE(cube_tet->has_attribute("voxel_volume")); |
| 18 | VectorF cube_voxel_volumes = cube_tet->get_attribute("voxel_volume"); |
| 19 | ASSERT_EQ(cube_tet->get_num_voxels(), cube_voxel_volumes.size()); |
| 20 | ASSERT_GT(cube_voxel_volumes.size(), 0.0); |
| 21 | ASSERT_GT(cube_voxel_volumes.minCoeff(), 0.0); |
| 22 | } |
| 23 | |
| 24 | TEST_F(VoxelVolumeAttributeTest, Recomputation) { |
| 25 | MeshPtr cube_tet = load_mesh("cube.msh"); |
nothing calls this directly
no test coverage detected