MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / TEST_F

Function TEST_F

tests/src/IO/OBJParserTest.h:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20TEST_F(OBJParserTest, ParseCube) {
21 std::string mesh_file = m_data_dir + "cube.obj";
22 parse(mesh_file);
23 ASSERT_EQ(8, m_parser->num_vertices());
24 ASSERT_EQ(12, m_parser->num_faces());
25 ASSERT_EQ(0, m_parser->num_voxels());
26 ASSERT_EQ(0, m_parser->vertex_per_voxel());
27 ASSERT_EQ(3, m_parser->vertex_per_face());
28 ASSERT_EQ(3, m_parser->dim());
29}
30
31TEST_F(OBJParserTest, ParseTet) {
32 std::string mesh_file = m_data_dir + "tet.obj";

Callers 1

OBJParserTest.hFile · 0.70

Calls 9

num_verticesMethod · 0.45
num_facesMethod · 0.45
num_voxelsMethod · 0.45
vertex_per_voxelMethod · 0.45
vertex_per_faceMethod · 0.45
dimMethod · 0.45
export_verticesMethod · 0.45
export_facesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected