add IO::Options::Custom to reading and writing in unittests_tutorials.cc
This commit is contained in:
@@ -781,14 +781,15 @@ TEST_F(OpenMeshTutorials, storing_custom_properties) {
|
||||
EXPECT_TRUE(mesh.mproperty(mprop_map).persistent()) << "property should be persistent";
|
||||
|
||||
// write mesh
|
||||
bool ok = OpenMesh::IO::write_mesh( mesh, "persistence-check.om" );
|
||||
IO::Options opts(IO::Options::Custom);
|
||||
bool ok = OpenMesh::IO::write_mesh(mesh, "persistence-check.om", opts);
|
||||
EXPECT_TRUE(ok) << "Cannot write mesh to file 'persistent-check.om'";
|
||||
|
||||
// clear mesh
|
||||
mesh.clear();
|
||||
|
||||
//Read back mesh
|
||||
ok = OpenMesh::IO::read_mesh( mesh, "persistence-check.om" );
|
||||
ok = OpenMesh::IO::read_mesh(mesh, "persistence-check.om", opts);
|
||||
EXPECT_TRUE(ok) << "Cannot read mesh from file 'persistence-check.om'";
|
||||
|
||||
// check props
|
||||
|
||||
Reference in New Issue
Block a user